Ignore:
Timestamp:
May 12, 2010 10:54:49 AM (15 years ago)
Author:
bennylp
Message:

Re #1051: fix build error on iPhone 2.x due to some missing constants

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/projects/iphone/pjmedia/src/pjmedia-audiodev/coreaudio_dev.c

    r3127 r3167  
    2929 
    3030    #define AudioDeviceID unsigned 
     31 
     32    /* For iPhone 2.x and earlier */ 
     33    #if __IPHONE_OS_VERSION_MIN_REQUIRED <= __IPHONE_2_2 
     34        #define kAudioUnitSubType_VoiceProcessingIO kAudioUnitSubType_RemoteIO 
     35        #define kAudioSessionProperty_OverrideCategoryEnableBluetoothInput -1 
     36    #endif 
     37 
    3138#endif 
    3239 
     
    4047    #define AudioComponentInstanceDispose CloseComponent 
    4148#endif 
     49 
    4250 
    4351#define THIS_FILE               "coreaudio_dev.c" 
     
    724732 
    725733    if (inID == kAudioSessionProperty_AudioRouteChange) { 
    726         pj_status_t status; 
    727734 
    728735        PJ_LOG(3, (THIS_FILE, "audio route changed")); 
Note: See TracChangeset for help on using the changeset viewer.