Changeset 1638
- Timestamp:
- Dec 27, 2007 7:18:35 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia/pasound.c
r1486 r1638 236 236 PJ_DEF(int) pjmedia_snd_get_dev_count(void) 237 237 { 238 return Pa_GetDeviceCount(); 238 int count = Pa_GetDeviceCount(); 239 return count < 0 ? 0 : count; 239 240 } 240 241 … … 307 308 308 309 /* If still no device is found, enumerate all devices */ 309 count = Pa_GetDeviceCount();310 count = pjmedia_snd_get_dev_count(); 310 311 for (i=0; i<count; ++i) { 311 312 const PaDeviceInfo *paDevInfo; … … 363 364 364 365 /* If still no device is found, enumerate all devices */ 365 count = Pa_GetDeviceCount();366 count = pjmedia_snd_get_dev_count(); 366 367 for (i=0; i<count; ++i) { 367 368 const PaDeviceInfo *paDevInfo; … … 526 527 stream->pool = pool; 527 528 pj_strdup2_with_null(pool, &stream->name, paDevInfo->name); 528 stream->dir = stream->dir =PJMEDIA_DIR_PLAYBACK;529 stream->dir = PJMEDIA_DIR_PLAYBACK; 529 530 stream->play_id = index; 530 531 stream->rec_id = -1;
Note: See TracChangeset
for help on using the changeset viewer.