Ignore:
Timestamp:
Feb 22, 2009 12:00:12 PM (15 years ago)
Author:
bennylp
Message:
  • New convention about default audio device ID (now there is different ID for default capture/playback device. It should be backward compatible)
  • Fixed crash if sound port is unable to open sound device
  • Testing with the switchboard
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/projects/aps-direct/pjsip/src/pjsua-lib/pjsua_media.c

    r2468 r2469  
    24002400    } 
    24012401 
     2402    /* Normalize device ID with new convention about default device ID */ 
     2403    if (playback_dev == PJMEDIA_AUD_DEFAULT_CAPTURE_DEV) 
     2404        playback_dev = PJMEDIA_AUD_DEFAULT_PLAYBACK_DEV; 
     2405 
    24022406    /* Close existing sound port */ 
    24032407    close_snd_dev(); 
     
    24192423    status = pjmedia_aud_dev_default_param(capture_dev, &param); 
    24202424    if (status != PJ_SUCCESS) { 
     2425        pjsua_perror(THIS_FILE, "Error retrieving default audio " 
     2426                                "device parameters", status); 
    24212427        return status; 
    24222428    } 
Note: See TracChangeset for help on using the changeset viewer.