Ignore:
Timestamp:
Mar 4, 2009 7:00:28 PM (15 years ago)
Author:
bennylp
Message:

Ticket #734: error codes in audiodev

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/projects/aps-direct/pjmedia/src/pjmedia-audiodev/audiodev.c

    r2476 r2488  
    2626#define THIS_FILE   "audiodev.c" 
    2727 
     28#define DEFINE_CAP(name, info)  {name, info} 
     29 
    2830/* Capability names */ 
    2931static struct cap_info 
     
    3335} cap_infos[] =  
    3436{ 
    35     {"ext-fmt",     "Extended/non-PCM format"}, 
    36     {"latency-in",  "Input latency/buffer size setting"}, 
    37     {"latency-out", "Output latency/buffer size setting"}, 
    38     {"vol-in",      "Input volume setting"}, 
    39     {"vol-out",     "Output volume setting"}, 
    40     {"meter-in",    "Input meter"}, 
    41     {"meter-out",   "Output meter"}, 
    42     {"route-in",    "Input routing"}, 
    43     {"route-out",   "Output routing"}, 
    44     {"aec",         "Accoustic echo cancellation"}, 
    45     {"aec-tail",    "Tail length setting for AEC"}, 
    46     {"vad",         "Voice activity detection"}, 
    47     {"cng",         "Comfort noise generation"}, 
    48     {"plg",         "Packet loss concealment"} 
     37    DEFINE_CAP("ext-fmt",     "Extended/non-PCM format"), 
     38    DEFINE_CAP("latency-in",  "Input latency/buffer size setting"), 
     39    DEFINE_CAP("latency-out", "Output latency/buffer size setting"), 
     40    DEFINE_CAP("vol-in",      "Input volume setting"), 
     41    DEFINE_CAP("vol-out",     "Output volume setting"), 
     42    DEFINE_CAP("meter-in",    "Input meter"), 
     43    DEFINE_CAP("meter-out",   "Output meter"), 
     44    DEFINE_CAP("route-in",    "Input routing"), 
     45    DEFINE_CAP("route-out",   "Output routing"), 
     46    DEFINE_CAP("aec",         "Accoustic echo cancellation"), 
     47    DEFINE_CAP("aec-tail",    "Tail length setting for AEC"), 
     48    DEFINE_CAP("vad",         "Voice activity detection"), 
     49    DEFINE_CAP("cng",         "Comfort noise generation"), 
     50    DEFINE_CAP("plg",         "Packet loss concealment") 
    4951}; 
    5052 
     
    228230    } 
    229231 
     232    /* Register error subsystem */ 
     233    pj_register_strerror(PJMEDIA_AUDIODEV_ERRNO_START,  
     234                         PJ_ERRNO_SPACE_SIZE,  
     235                         &pjmedia_audiodev_strerror); 
     236 
     237    /* Init */ 
    230238    aud_subsys.pf = pf; 
    231239    aud_subsys.drv_cnt = 0; 
Note: See TracChangeset for help on using the changeset viewer.