Ignore:
Timestamp:
Mar 30, 2010 10:55:01 AM (14 years ago)
Author:
ming
Message:

Implemented ticket #1051: Core audio device support for Mac and iPhone OS

File:
1 edited

Legend:

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

    r2506 r3127  
    7676#if defined(PJ_HAS_ERROR_STRING) && (PJ_HAS_ERROR_STRING != 0) 
    7777 
     78 
     79    /* See if the error comes from Core Audio. */ 
     80#if PJMEDIA_AUDIO_DEV_HAS_COREAUDIO 
     81    if (statcode >= PJMEDIA_AUDIODEV_COREAUDIO_ERRNO_START && 
     82        statcode <= PJMEDIA_AUDIODEV_COREAUDIO_ERRNO_END) 
     83    { 
     84        int ca_err = PJMEDIA_AUDIODEV_COREAUDIO_ERRNO_START - statcode; 
     85 
     86        PJ_UNUSED_ARG(ca_err); 
     87        // TODO: create more helpful error messages 
     88        errstr.ptr = buf; 
     89        pj_strcpy2(&errstr, "Core audio error"); 
     90        return errstr; 
     91    } else 
     92#endif 
     93 
    7894    /* See if the error comes from PortAudio. */ 
    7995#if PJMEDIA_AUDIO_DEV_HAS_PORTAUDIO 
Note: See TracChangeset for help on using the changeset viewer.