- Timestamp:
- Feb 27, 2006 11:53:15 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia/pasound.c
r209 r245 33 33 { 34 34 pj_pool_t *pool; 35 pj_str_t name; 35 36 PaStream *stream; 36 37 int dev_index; … … 70 71 status = pj_thread_register("pa_rec", stream->thread_desc, &stream->thread); 71 72 stream->thread_initialized = 1; 73 PJ_LOG(5,(THIS_FILE, "Recorder thread started")); 72 74 } 73 75 … … 110 112 status = pj_thread_register("pa_rec", stream->thread_desc, &stream->thread); 111 113 stream->thread_initialized = 1; 114 PJ_LOG(5,(THIS_FILE, "Player thread started")); 112 115 } 113 116 … … 230 233 stream = pj_pool_calloc(pool, 1, sizeof(*stream)); 231 234 stream->pool = pool; 235 stream->name = pj_str("recorder"); 232 236 stream->user_data = user_data; 233 237 stream->dev_index = index; … … 309 313 stream = pj_pool_calloc(pool, 1, sizeof(*stream)); 310 314 stream->pool = pool; 315 stream->name = pj_str("player"); 311 316 stream->user_data = user_data; 312 317 stream->samples_per_sec = param->samples_per_frame; … … 349 354 PJ_DEF(pj_status_t) pj_snd_stream_start(pj_snd_stream *stream) 350 355 { 351 PJ_LOG(5,(THIS_FILE, "Starting stream..")); 352 return Pa_StartStream(stream->stream); 356 pj_status_t status; 357 358 PJ_LOG(5,(THIS_FILE, "Starting %s stream..", stream->name.ptr)); 359 360 status = Pa_StartStream(stream->stream); 361 362 PJ_LOG(5,(THIS_FILE, "Done, status=%d", status)); 363 364 return status; 353 365 } 354 366 … … 369 381 370 382 err = Pa_StopStream(stream->stream); 383 384 PJ_LOG(5,(THIS_FILE, "Done, status=%d", err)); 385 371 386 return err; 372 387 }
Note: See TracChangeset
for help on using the changeset viewer.