Ignore:
Timestamp:
May 17, 2010 12:28:17 PM (9 years ago)
Author:
ming
Message:

Fix #1051:

  • Automatic detection of build target.
  • Fix compiler warning on Mac
File:
1 edited

Legend:

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

    r3167 r3173  
    2424#if PJMEDIA_AUDIO_DEV_HAS_COREAUDIO 
    2525 
     26#include "TargetConditionals.h" 
     27#if TARGET_OS_IPHONE 
     28    #define COREAUDIO_MAC 0 
     29#else 
     30    #define COREAUDIO_MAC 1 
     31#endif 
     32 
    2633#include <AudioUnit/AudioUnit.h> 
    2734#if !COREAUDIO_MAC 
     
    202209    AudioDeviceID *dev_ids; 
    203210    UInt32 buf_size, dev_size, size = sizeof(AudioDeviceID); 
    204     AudioBufferList *buf; 
     211    AudioBufferList *buf = NULL; 
    205212    OSStatus ostatus; 
    206213#endif 
Note: See TracChangeset for help on using the changeset viewer.