Changeset 812


Ignore:
Timestamp:
Nov 21, 2006 8:41:00 AM (14 years ago)
Author:
bennylp
Message:

Fixed sound device ID bug: application was unable to use device ID zero because this caused pasound.c to autodetect default device

Location:
pjproject/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia/pasound.c

    r766 r812  
    342342    PaError err; 
    343343 
    344     if (index <= 0) { 
     344    if (index < 0) { 
    345345        index = pa_get_default_input_dev(channel_count); 
    346346        if (index < 0) { 
     
    438438    PaError err; 
    439439 
    440     if (index <= 0) { 
     440    if (index < 0) { 
    441441        index = pa_get_default_output_dev(channel_count); 
    442442        if (index < 0) { 
     
    543543    PaError err; 
    544544 
    545     if (rec_id <= 0) { 
     545    if (rec_id < 0) { 
    546546        rec_id = pa_get_default_input_dev(channel_count); 
    547547        if (rec_id < 0) { 
     
    557557    } 
    558558 
    559     if (play_id <= 0) { 
     559    if (play_id < 0) { 
    560560        play_id = pa_get_default_output_dev(channel_count); 
    561561        if (play_id < 0) { 
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_core.c

    r797 r812  
    394394    PJ_ASSERT_RETURN(status == PJ_SUCCESS, status); 
    395395 
     396 
     397    /* Set default sound device ID */ 
     398    pjsua_var.cap_dev = pjsua_var.play_dev = -1; 
    396399 
    397400    /* Init caching pool. */ 
Note: See TracChangeset for help on using the changeset viewer.