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



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);
              }
            }

-- 
Matthias Apitz
Manager Technical Support - OCLC GmbH
Gruenwalder Weg 28g - 82041 Oberhaching - Germany
t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
e <matthias apitz oclc org> - w http://www.oclc.org/ http://www.UnixArea.de/
b http://gurucubano.blogspot.com/
Don't top-post, read RFC1855 http://www.faqs.org/rfcs/rfc1855.html
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on Usenet and in e-mail?


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