Re: [Ekiga-list] OSS plugin of /usr/ports/devel/pwlib in FreeBSD



Hi,

I committed that patch to Phobos and Trunk branches of PTLIB.

Thanks!

Le dimanche 23 mars 2008 à 19:13 +0100, Matthias Apitz a écrit :
> Hello,
> 
> The art of pick-up the filename of the audio device conflicts with other
> applications of the desktop using the (virtual) audio channels; the
> filename should just be "/dev/dsp0" for FreeBSD and the rest is handled
> via the devfs(5) file system; a patch like the below works for me fine
> and Ekiga plays sound parallel to the apps of KDE.
> 
> Feliz Pascuas / Happy Eastern
> 
> 	matthias
> 
> # diff -c plugins/sound_oss/sound_oss.cxx.70r plugins/sound_oss/sound_oss.cxx
> *** plugins/sound_oss/sound_oss.cxx.70r	2008-03-23 16:09:49.000000000 +0100
> --- plugins/sound_oss/sound_oss.cxx	2008-03-23 18:06:05.000000000 +0100
> ***************
> *** 399,404 ****
> --- 399,413 ----
>               PINDEX cardnum = numbers.AsInteger(); //dspN.M is truncated to dspN.
>               // If we have not yet inserted something for this cardnum, insert it
>               if (dsp.GetAt(cardnum+1) == NULL) {
> + #if defined P_FREEBSD
> +               // in FreeBSD the file name should be used via the devfs(5) and
> +               // is just "/dev/dsp0" and devfs(5) takes care of virtual channels,
> +               // like /dev/dsp0.0 /dev/dsp0.1 ...
> +               // everything else would conflict with other KDE apps using the
> +               // audio
> +               devname = devdir + "dsp0";
> +               PTRACE(1, "OSS\tCollectSoundDevices FreeBSD devname set to devfs(5) name:" << devname );
> + #endif
>                 dsp.SetAt(cardnum+1, devname);
>               }
>             }
> 
-- 
 _     Damien Sandras
(o-      
//\    Ekiga Softphone : http://www.ekiga.org/
v_/_   NOVACOM         : http://www.novacom.be/
       FOSDEM          : http://www.fosdem.org/
       SIP Phone       : sip:dsandras ekiga net
                       



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]