Changeset 4527


Ignore:
Timestamp:
May 29, 2013 3:53:15 AM (7 years ago)
Author:
ming
Message:

Re #1630 (misc): Fixed typo and missing include in coreaudio dev

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia-audiodev/coreaudio_dev.c

    r4082 r4527  
    3333#include <AudioUnit/AudioUnit.h> 
    3434#include <AudioToolbox/AudioConverter.h> 
    35 #if !COREAUDIO_MAC 
     35#if COREAUDIO_MAC 
     36    #include <CoreAudio/CoreAudio.h> 
     37#else 
    3638    #include <AudioToolbox/AudioServices.h> 
    3739 
     
    445447                                             &addr, 0, NULL, 
    446448                                             &size, (void *)&dev_id); 
    447         if (ostatus != noErr && dev_id != dev_ids[idx]) { 
     449        if (ostatus == noErr && dev_id != dev_ids[idx]) { 
    448450            AudioDeviceID temp_id = dev_ids[idx]; 
    449451             
     
    462464                                             &addr, 0, NULL, 
    463465                                             &size, (void *)&dev_id); 
    464         if (ostatus != noErr && dev_id != dev_ids[idx]) { 
     466        if (ostatus == noErr && dev_id != dev_ids[idx]) { 
    465467            AudioDeviceID temp_id = dev_ids[idx]; 
    466468             
Note: See TracChangeset for help on using the changeset viewer.