- Timestamp:
- May 29, 2013 3:53:15 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia-audiodev/coreaudio_dev.c
r4082 r4527 33 33 #include <AudioUnit/AudioUnit.h> 34 34 #include <AudioToolbox/AudioConverter.h> 35 #if !COREAUDIO_MAC 35 #if COREAUDIO_MAC 36 #include <CoreAudio/CoreAudio.h> 37 #else 36 38 #include <AudioToolbox/AudioServices.h> 37 39 … … 445 447 &addr, 0, NULL, 446 448 &size, (void *)&dev_id); 447 if (ostatus != noErr && dev_id != dev_ids[idx]) {449 if (ostatus == noErr && dev_id != dev_ids[idx]) { 448 450 AudioDeviceID temp_id = dev_ids[idx]; 449 451 … … 462 464 &addr, 0, NULL, 463 465 &size, (void *)&dev_id); 464 if (ostatus != noErr && dev_id != dev_ids[idx]) {466 if (ostatus == noErr && dev_id != dev_ids[idx]) { 465 467 AudioDeviceID temp_id = dev_ids[idx]; 466 468
Note: See TracChangeset
for help on using the changeset viewer.