Changeset 4130 for pjproject/trunk/pjmedia/src/pjmedia-audiodev/alsa_dev.c
- Timestamp:
- May 17, 2012 8:35:51 AM (13 years ago)
- Location:
- pjproject/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk
- Property svn:mergeinfo changed
/pjproject/branches/1.x merged: 4124-4127
- Property svn:mergeinfo changed
-
pjproject/trunk/pjmedia/src/pjmedia-audiodev/alsa_dev.c
r3553 r4130 548 548 unsigned int rate; 549 549 snd_pcm_uframes_t tmp_buf_size; 550 snd_pcm_uframes_t tmp_period_size; 550 551 551 552 if (param->play_id < 0 || param->play_id >= stream->af->dev_cnt) … … 614 615 TRACE_((THIS_FILE, "open_playback: set period size: %d", 615 616 stream->pb_frames)); 617 tmp_period_size = stream->pb_frames; 616 618 snd_pcm_hw_params_set_period_size_near (stream->pb_pcm, params, 617 & stream->pb_frames, NULL);619 &tmp_period_size, NULL); 618 620 TRACE_((THIS_FILE, "open_playback: period size set to: %d", 619 stream->pb_frames));621 tmp_period_size)); 620 622 621 623 /* Set the sound device buffer size and latency */ … … 664 666 unsigned int rate; 665 667 snd_pcm_uframes_t tmp_buf_size; 668 snd_pcm_uframes_t tmp_period_size; 666 669 667 670 if (param->rec_id < 0 || param->rec_id >= stream->af->dev_cnt) … … 730 733 TRACE_((THIS_FILE, "open_capture: set period size: %d", 731 734 stream->ca_frames)); 735 tmp_period_size = stream->ca_frames; 732 736 snd_pcm_hw_params_set_period_size_near (stream->ca_pcm, params, 733 & stream->ca_frames, NULL);737 &tmp_period_size, NULL); 734 738 TRACE_((THIS_FILE, "open_capture: period size set to: %d", 735 stream->ca_frames));739 tmp_period_size)); 736 740 737 741 /* Set the sound device buffer size and latency */
Note: See TracChangeset
for help on using the changeset viewer.