Changeset 5140 for pjproject/trunk
- Timestamp:
- Jul 31, 2015 7:12:36 AM (9 years ago)
- Location:
- pjproject/trunk/pjmedia/src/pjmedia
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia/sound_legacy.c
r4537 r5140 125 125 pj_status_t status; 126 126 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 127 133 /* Initialize parameters */ 128 134 if (dir & PJMEDIA_DIR_CAPTURE) { -
pjproject/trunk/pjmedia/src/pjmedia/sound_port.c
r4982 r5140 378 378 pjmedia_snd_port_param_default(¶m); 379 379 380 /* Normalize rec_id & play_id */ 381 if (rec_id < 0) 382 rec_id = PJMEDIA_AUD_DEFAULT_CAPTURE_DEV; 383 if (play_id < 0) 384 play_id = PJMEDIA_AUD_DEFAULT_PLAYBACK_DEV; 385 380 386 status = pjmedia_aud_dev_default_param(rec_id, ¶m.base); 381 387 if (status != PJ_SUCCESS) … … 412 418 pjmedia_snd_port_param_default(¶m); 413 419 420 /* Normalize dev_id */ 421 if (dev_id < 0) 422 dev_id = PJMEDIA_AUD_DEFAULT_CAPTURE_DEV; 423 414 424 status = pjmedia_aud_dev_default_param(dev_id, ¶m.base); 415 425 if (status != PJ_SUCCESS) … … 445 455 446 456 pjmedia_snd_port_param_default(¶m); 457 458 /* Normalize dev_id */ 459 if (dev_id < 0) 460 dev_id = PJMEDIA_AUD_DEFAULT_PLAYBACK_DEV; 447 461 448 462 status = pjmedia_aud_dev_default_param(dev_id, ¶m.base);
Note: See TracChangeset
for help on using the changeset viewer.