Re #1051: fix build error on iPhone 2.x due to some missing constants
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/iphone@3167 74dad513-b988-da41-8d7b-12977e46ad98
This commit is contained in:
parent
cce6b9e601
commit
2be59c3733
|
@ -28,6 +28,13 @@
|
|||
#include <AudioToolbox/AudioServices.h>
|
||||
|
||||
#define AudioDeviceID unsigned
|
||||
|
||||
/* For iPhone 2.x and earlier */
|
||||
#if __IPHONE_OS_VERSION_MIN_REQUIRED <= __IPHONE_2_2
|
||||
#define kAudioUnitSubType_VoiceProcessingIO kAudioUnitSubType_RemoteIO
|
||||
#define kAudioSessionProperty_OverrideCategoryEnableBluetoothInput -1
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
/* For Mac OS 10.5.x and earlier */
|
||||
|
@ -40,6 +47,7 @@
|
|||
#define AudioComponentInstanceDispose CloseComponent
|
||||
#endif
|
||||
|
||||
|
||||
#define THIS_FILE "coreaudio_dev.c"
|
||||
|
||||
/* coreaudio device info */
|
||||
|
@ -723,7 +731,6 @@ static void propListener(void *inClientData,
|
|||
struct coreaudio_stream *strm = (struct coreaudio_stream*)inClientData;
|
||||
|
||||
if (inID == kAudioSessionProperty_AudioRouteChange) {
|
||||
pj_status_t status;
|
||||
|
||||
PJ_LOG(3, (THIS_FILE, "audio route changed"));
|
||||
if (strm->interrupted)
|
||||
|
|
Loading…
Reference in New Issue