From 31a55fa219085e7fb3591f8d70f666a0140ba206 Mon Sep 17 00:00:00 2001 From: vspader Date: Sun, 1 Mar 2009 17:07:57 -0800 Subject: [PATCH] Get AO working on PPC. --- .../AudioOverload.xcodeproj/project.pbxproj | 14 ++++++++++++-- Plugins/AudioOverload/AODecoder.m | 1 + 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/Frameworks/AudioOverload/AudioOverload.xcodeproj/project.pbxproj b/Frameworks/AudioOverload/AudioOverload.xcodeproj/project.pbxproj index 4c41a780a..b8f8d6d70 100644 --- a/Frameworks/AudioOverload/AudioOverload.xcodeproj/project.pbxproj +++ b/Frameworks/AudioOverload/AudioOverload.xcodeproj/project.pbxproj @@ -531,11 +531,16 @@ GCC_ENABLE_FIX_AND_CONTINUE = YES; GCC_MODEL_TUNING = G5; GCC_OPTIMIZATION_LEVEL = 0; - GCC_PREPROCESSOR_DEFINITIONS = ( + "GCC_PREPROCESSOR_DEFINITIONS[arch=i386]" = ( "HAS_PSXCPU=1", "LSB_FIRST=1", "PATH_MAX=1024", ); + "GCC_PREPROCESSOR_DEFINITIONS[arch=ppc]" = ( + "HAS_PSXCPU=1", + "LSB_FIRST=0", + "PATH_MAX=1024", + ); HEADER_SEARCH_PATHS = aosdk; INFOPLIST_FILE = Info.plist; INSTALL_PATH = "@loader_path/../Frameworks"; @@ -555,11 +560,16 @@ FRAMEWORK_VERSION = A; GCC_C_LANGUAGE_STANDARD = gnu99; GCC_MODEL_TUNING = G5; - GCC_PREPROCESSOR_DEFINITIONS = ( + "GCC_PREPROCESSOR_DEFINITIONS[arch=i386]" = ( "HAS_PSXCPU=1", "LSB_FIRST=1", "PATH_MAX=1024", ); + "GCC_PREPROCESSOR_DEFINITIONS[arch=ppc]" = ( + "HAS_PSXCPU=1", + "LSB_FIRST=0", + "PATH_MAX=1024", + ); HEADER_SEARCH_PATHS = aosdk; INFOPLIST_FILE = Info.plist; INSTALL_PATH = "@loader_path/../Frameworks"; diff --git a/Plugins/AudioOverload/AODecoder.m b/Plugins/AudioOverload/AODecoder.m index d789bd62b..8b2e0a3e0 100644 --- a/Plugins/AudioOverload/AODecoder.m +++ b/Plugins/AudioOverload/AODecoder.m @@ -319,6 +319,7 @@ int ao_get_lib(char *fn, uint8 **buf, uint64 *length) [NSNumber numberWithInteger:totalFrames], @"totalFrames", [NSNumber numberWithInt:0], @"bitrate", [NSNumber numberWithBool:NO], @"seekable", + @"host", @"endian", nil]; }