[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: Re: patch for arts on ppc
From: Thomas <zander () xs4all ! nl>
Date: 2000-10-06 19:42:59
[Download RAW message or body]
I can confirm this, the problem is indeed going away with the patch
below.
The code works on my intel and my ppc machines (imac with 2.2.13)
Please comment/test.
> Hello.
>
> I'm trying to get arts running on my ppc. I've never managed to use it
> yet. The problem is always different, so I haven't spoken here about it until
> now.
>
> The latest problem I've had is : ioctl SNDCTL_DSP_GETCAPS failed. I've
> checked the sound driver (dmasound in the linux kernel), and it indeed does not
> implement this ioctl.
> By modifying audiosubsys.cc to not quit on this error but rather set
> device_caps=0, i've managed to bypass this problem.
>
> ** I think this should definetly be in the kde2 final **
>
> and this is harmless
>
> regards,
>
> Thomas
>
zander@namlook:~/sources/kde/kdelibs/arts/flow > cvs diff audiosubsys.cc
Index: audiosubsys.cc
===================================================================
RCS file: /home/kde/kdelibs/arts/flow/audiosubsys.cc,v
retrieving revision 1.25
diff -u -3 -p -r1.25 audiosubsys.cc
--- audiosubsys.cc 2000/09/28 22:42:37 1.25
+++ audiosubsys.cc 2000/10/06 19:39:57
@@ -232,13 +232,7 @@ int AudioSubSystem::open()
*/
int device_caps;
if(ioctl(audio_fd,SNDCTL_DSP_GETCAPS,&device_caps) == -1)
- {
- _error = "SNDCTL_DSP_GETCAPS failed - ";
- _error += strerror(errno);
-
- close();
- return -1;
- }
+ device_caps=0;
artsdebug("device capabilities: ");
artsdebug("revision%d ",device_caps & DSP_CAP_REVISION);
--
Thomas Zander zander@earthling.net
The only thing worse than failure is the fear of trying something new
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic