Ignore:
Timestamp:
Mar 8, 2013 8:02:48 AM (11 years ago)
Author:
riza
Message:

Re #1636: add initial support for bdIMAD

File:
1 edited

Legend:

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

    r3553 r4432  
    156156#endif 
    157157 
     158/* See if the error comes from BDIMAD */ 
     159#if PJMEDIA_AUDIO_DEV_HAS_BDIMAD 
     160         
     161        if (statcode >= PJMEDIA_AUDIODEV_BDIMAD_ERROR_START && 
     162            statcode <  PJMEDIA_AUDIODEV_BDIMAD_ERROR_END) 
     163        { 
     164            pj_status_t native_err; 
     165            native_err = statcode - PJMEDIA_AUDIODEV_BDIMAD_ERROR_START; 
     166 
     167            pj_ansi_snprintf(buf, bufsize, "BDIMAD native error %d", native_err); 
     168            return pj_str(buf); 
     169        } else 
     170#endif 
     171 
    158172    /* Audiodev error */ 
    159173    if (statcode >= PJMEDIA_AUDIODEV_ERRNO_START &&  
Note: See TracChangeset for help on using the changeset viewer.