Ignore:
Timestamp:
Jul 31, 2015 7:12:36 AM (6 years ago)
Author:
nanang
Message:

Fix #1871: fixed missing audio index normalization in audio device open functions.

File:
1 edited

Legend:

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

    r4537 r5140  
    125125    pj_status_t status; 
    126126 
     127    /* Normalize rec_id & play_id */ 
     128    if (dir & PJMEDIA_DIR_CAPTURE && rec_id < 0) 
     129        rec_id = PJMEDIA_AUD_DEFAULT_CAPTURE_DEV; 
     130    if (dir & PJMEDIA_DIR_PLAYBACK && play_id < 0) 
     131        play_id = PJMEDIA_AUD_DEFAULT_PLAYBACK_DEV; 
     132 
    127133    /* Initialize parameters */ 
    128134    if (dir & PJMEDIA_DIR_CAPTURE) { 
Note: See TracChangeset for help on using the changeset viewer.