зеркало из https://github.com/mozilla/gecko-dev.git
Fix Mac OS X 10.6 compile problem with libsydneyaudio. b=492072 r=cdouble
This commit is contained in:
Родитель
7ac1da9ded
Коммит
d5a3ece6b0
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче