- Timestamp:
- May 17, 2010 12:51:06 PM (14 years ago)
- Location:
- pjproject/trunk
- Files:
-
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk
- Property svn:mergeinfo changed
/pjproject/branches/projects/iphone (added) merged: 3127,3167,3173
- Property svn:mergeinfo changed
-
pjproject/trunk/pjmedia/src/pjmedia-audiodev/coreaudio_dev.c
r3127 r3174 24 24 #if PJMEDIA_AUDIO_DEV_HAS_COREAUDIO 25 25 26 #include "TargetConditionals.h" 27 #if TARGET_OS_IPHONE 28 #define COREAUDIO_MAC 0 29 #else 30 #define COREAUDIO_MAC 1 31 #endif 32 26 33 #include <AudioUnit/AudioUnit.h> 27 34 #if !COREAUDIO_MAC … … 29 36 30 37 #define AudioDeviceID unsigned 38 39 /* For iPhone 2.x and earlier */ 40 #if __IPHONE_OS_VERSION_MIN_REQUIRED <= __IPHONE_2_2 41 #define kAudioUnitSubType_VoiceProcessingIO kAudioUnitSubType_RemoteIO 42 #define kAudioSessionProperty_OverrideCategoryEnableBluetoothInput -1 43 #endif 44 31 45 #endif 32 46 … … 40 54 #define AudioComponentInstanceDispose CloseComponent 41 55 #endif 56 42 57 43 58 #define THIS_FILE "coreaudio_dev.c" … … 194 209 AudioDeviceID *dev_ids; 195 210 UInt32 buf_size, dev_size, size = sizeof(AudioDeviceID); 196 AudioBufferList *buf ;211 AudioBufferList *buf = NULL; 197 212 OSStatus ostatus; 198 213 #endif … … 724 739 725 740 if (inID == kAudioSessionProperty_AudioRouteChange) { 726 pj_status_t status;727 741 728 742 PJ_LOG(3, (THIS_FILE, "audio route changed"));
Note: See TracChangeset
for help on using the changeset viewer.