Fix Mac OS X 10.6 compile problem with libsydneyaudio. b=492072 r=cdouble

This commit is contained in:
Josh Aas 2009-05-19 13:19:49 -04:00
Родитель 7ac1da9ded
Коммит d5a3ece6b0
4 изменённых файлов: 26 добавлений и 0 удалений

Просмотреть файл

@ -9,3 +9,6 @@ The svn revision number used was r3895.
pause-resume.patch is applied to implement and fix issues
with pausing and resuming audio streams.
include-CoreServices.patch is applied to include CoreServices headers
on Mac OS X. Fixes a build failure on Mac OS X 10.6. b=492072

Просмотреть файл

@ -0,0 +1,21 @@
diff --git a/media/libsydneyaudio/src/sydney_audio_mac.c b/media/libsydneyaudio/src/sydney_audio_mac.c
--- a/media/libsydneyaudio/src/sydney_audio_mac.c
+++ b/media/libsydneyaudio/src/sydney_audio_mac.c
@@ -29,16 +29,17 @@
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** *
*/
#include <pthread.h>
+#include <CoreServices/CoreServices.h>
#include <AudioUnit/AudioUnit.h>
#include "sydney_audio.h"
/*
* The Mac's audio interface is based on a "pull" I/O model, which means you
* can't just provide a data buffer and tell the audio device to play; you must
* register a callback and provide data as the device asks for it. To support
* sydney audio's "write-to-play" style interface, we have to buffer up the

Просмотреть файл

@ -34,6 +34,7 @@
*/
#include <pthread.h>
#include <CoreServices/CoreServices.h>
#include <AudioUnit/AudioUnit.h>
#include "sydney_audio.h"

Просмотреть файл

@ -6,3 +6,4 @@ cp $1/include/sydney_audio.h include/sydney_audio.h
cp $1/src/*.c src/
cp $1/AUTHORS ./AUTHORS
patch -p4 <pause-resume.patch
patch -p4 <include-CoreServices.patch