- Timestamp:
- Jan 31, 2011 11:27:48 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia-audiodev/coreaudio_dev.c
r3406 r3410 661 661 662 662 ioData->mNumberBuffers = 1; 663 ioData->mBuffers[0].mNumberChannels = 1;663 ioData->mBuffers[0].mNumberChannels = strm->streamFormat.mChannelsPerFrame; 664 664 ioData->mBuffers[0].mData = strm->resample_buf_ptr; 665 665 ioData->mBuffers[0].mDataByteSize = *ioNumberDataPackets * 666 strm->streamFormat.mChannelsPerFrame * 666 667 strm->param.bits_per_sample >> 3; 667 668 … … 726 727 if (nsamples >= resampleSize) { 727 728 pjmedia_frame frame; 728 UInt32 resampleOutput = strm->param.samples_per_frame; 729 UInt32 resampleOutput = strm->param.samples_per_frame / 730 strm->streamFormat.mChannelsPerFrame; 729 731 AudioBufferList ab; 730 732 … … 736 738 737 739 ab.mNumberBuffers = 1; 738 ab.mBuffers[0].mNumberChannels = 1;740 ab.mBuffers[0].mNumberChannels = strm->streamFormat.mChannelsPerFrame; 739 741 ab.mBuffers[0].mData = strm->rec_buf; 740 742 ab.mBuffers[0].mDataByteSize = frame.size; … … 779 781 strm->resample_buf_ptr = input; 780 782 ab.mBuffers[0].mDataByteSize = frame.size; 781 resampleOutput = strm->param.samples_per_frame; 783 resampleOutput = strm->param.samples_per_frame / 784 strm->streamFormat.mChannelsPerFrame; 782 785 ostatus = AudioConverterFillComplexBuffer(strm->resample, 783 786 resampleProc,
Note: See TracChangeset
for help on using the changeset viewer.