diff options
author | rafan <rafan@FreeBSD.org> | 2008-04-13 20:43:55 +0800 |
---|---|---|
committer | rafan <rafan@FreeBSD.org> | 2008-04-13 20:43:55 +0800 |
commit | b430eaf2c4d1ef473edfe51524a451756e8f3d70 (patch) | |
tree | d66d606517e87d8f3f8864d77a12d69fb677cae8 /devel/pwlib | |
parent | 51059a630ab3c80b1dcd9872e7583dd210cc28b2 (diff) | |
download | freebsd-ports-gnome-b430eaf2c4d1ef473edfe51524a451756e8f3d70.tar.gz freebsd-ports-gnome-b430eaf2c4d1ef473edfe51524a451756e8f3d70.tar.zst freebsd-ports-gnome-b430eaf2c4d1ef473edfe51524a451756e8f3d70.zip |
- Allow multiple apps to access sound device in parallel
- Bump PORTREVISION
PR: ports/122584
Submitted by: Steve Ames <steve at energistic.com> (maintainer)
Diffstat (limited to 'devel/pwlib')
-rw-r--r-- | devel/pwlib/Makefile | 2 | ||||
-rw-r--r-- | devel/pwlib/files/patch-plugins-sound_oss-sound_oss_cxx | 22 |
2 files changed, 20 insertions, 4 deletions
diff --git a/devel/pwlib/Makefile b/devel/pwlib/Makefile index 0da8cd224be3..2601a1782b0f 100644 --- a/devel/pwlib/Makefile +++ b/devel/pwlib/Makefile @@ -7,7 +7,7 @@ PORTNAME= pwlib PORTVERSION= 1.12.0 -PORTREVISION= 1 +PORTREVISION= 2 PORTEPOCH= 1 CATEGORIES= devel MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} diff --git a/devel/pwlib/files/patch-plugins-sound_oss-sound_oss_cxx b/devel/pwlib/files/patch-plugins-sound_oss-sound_oss_cxx index 6f18e5cc9f87..7572b4cf5afd 100644 --- a/devel/pwlib/files/patch-plugins-sound_oss-sound_oss_cxx +++ b/devel/pwlib/files/patch-plugins-sound_oss-sound_oss_cxx @@ -1,6 +1,22 @@ ---- plugins/sound_oss/sound_oss.cxx.orig 2007-10-19 02:22:33.000000000 -0400 -+++ plugins/sound_oss/sound_oss.cxx 2007-12-30 20:46:38.000000000 -0500 -@@ -643,6 +643,7 @@ +--- plugins/sound_oss/sound_oss.orig 2008-04-08 13:54:44.000000000 -0400 ++++ plugins/sound_oss/sound_oss.cxx 2008-04-08 13:57:40.000000000 -0400 +@@ -399,6 +399,15 @@ + 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); + } + } +@@ -643,6 +652,7 @@ arg = val = (entry.numChannels == 2) ? 1 : 0; if (ConvertOSError(::ioctl(os_handle, SNDCTL_DSP_STEREO, &arg)) || (arg != val)) { |