summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTony Vroon <chainsaw@gentoo.org>2005-01-30 00:00:26 +0000
committerTony Vroon <chainsaw@gentoo.org>2005-01-30 00:00:26 +0000
commit06ebbe86156d1ce9ccf1b48bb724b9df2d3784d3 (patch)
tree6dde1ac02ab283aca9c5d0989f3e2a5fbbbf20a0 /media-libs/libao/files
parentAdjusted the ebuild to use properly the kde eclasses, and to make sure KDEDIR... (diff)
downloadgentoo-2-06ebbe86156d1ce9ccf1b48bb724b9df2d3784d3.tar.gz
gentoo-2-06ebbe86156d1ce9ccf1b48bb724b9df2d3784d3.tar.bz2
gentoo-2-06ebbe86156d1ce9ccf1b48bb724b9df2d3784d3.zip
Version bump, closes bug #79646. Patch now applied unconditionally.
(Portage version: 2.0.51-r15)
Diffstat (limited to 'media-libs/libao/files')
-rw-r--r--media-libs/libao/files/digest-libao-0.8.61
-rw-r--r--media-libs/libao/files/libao-0.8.6-ppc-macos.patch44
2 files changed, 45 insertions, 0 deletions
diff --git a/media-libs/libao/files/digest-libao-0.8.6 b/media-libs/libao/files/digest-libao-0.8.6
new file mode 100644
index 000000000000..4d7bee7a2031
--- /dev/null
+++ b/media-libs/libao/files/digest-libao-0.8.6
@@ -0,0 +1 @@
+MD5 12e136a4c0995068ff134997c84421ed libao-0.8.6.tar.gz 387583
diff --git a/media-libs/libao/files/libao-0.8.6-ppc-macos.patch b/media-libs/libao/files/libao-0.8.6-ppc-macos.patch
new file mode 100644
index 000000000000..6ccf9e531c6b
--- /dev/null
+++ b/media-libs/libao/files/libao-0.8.6-ppc-macos.patch
@@ -0,0 +1,44 @@
+diff -uNr libao-0.8.6/configure libao-0.8.6-new/configure
+--- libao-0.8.6/configure Tue Jan 11 16:08:26 2005
++++ libao-0.8.6-new/configure Sat Jan 29 17:23:03 2005
+@@ -19227,6 +19227,10 @@
+ DLOPEN_FLAG='(RTLD_LAZY)'
+ SHARED_LIB_EXT='.so'
+ ;;
++ *darwin*)
++ DLOPEN_FLAG='(RTLD_LAZY)'
++ SHARED_LIB_EXT='.dylib'
++ ;;
+ *)
+ DLOPEN_FLAG='(RTLD_NOW | RTLD_GLOBAL)'
+ SHARED_LIB_EXT='.so'
+diff -uNr libao-0.8.6/src/plugins/macosx/ao_macosx.c libao-0.8.6-new/src/plugins/macosx/ao_macosx.c
+--- libao-0.8.6/src/plugins/macosx/ao_macosx.c Tue Nov 9 02:20:26 2004
++++ libao-0.8.6-new/src/plugins/macosx/ao_macosx.c Sat Jan 29 17:26:09 2005
+@@ -173,6 +173,26 @@
+ return 0;
+ }
+
++ if (internal->outputStreamBasicDescription.mChannelsPerFrame != format->channels)
++ {
++ internal->outputStreamBasicDescription.mChannelsPerFrame = format->channels;
++ internal->outputStreamBasicDescription.mBytesPerFrame =
++ internal->outputStreamBasicDescription.mChannelsPerFrame * sizeof (float);
++ internal->outputStreamBasicDescription.mBytesPerPacket =
++ internal->outputStreamBasicDescription.mBytesPerFrame *
++ internal->outputStreamBasicDescription.mFramesPerPacket;
++ status = AudioDeviceSetProperty(internal->outputDeviceID, 0, 0, 0,
++ kAudioDevicePropertyStreamFormat,
++ sizeof (internal->outputStreamBasicDescription),
++ &internal->outputStreamBasicDescription);
++ if (status != noErr)
++ {
++ fprintf(stderr, "ao_macosx_open: AudioDeviceSetProperty returned %.*s when setting kAudioDevicePropertyStreamFormat\n",
++ (int) sizeof (status), (char *) &status);
++ return 0;
++ }
++ }
++
+ fprintf(stderr, "hardware format...\n");
+ fprintf(stderr, "%f mSampleRate\n", internal->outputStreamBasicDescription.mSampleRate);
+ fprintf(stderr, "%c%c%c%c mFormatID\n", (int)(internal->outputStreamBasicDescription.mFormatID & 0xff000000) >> 24,