Changeset 6127 for pjproject


Ignore:
Timestamp:
Jan 8, 2020 8:40:04 AM (5 years ago)
Author:
ming
Message:

Re #1778: Fixed incorrect calculation for stereo mode

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia-audiodev/coreaudio_dev.m

    r6094 r6127  
    10441044    unsigned nsamples_req = inNumberFrames * stream->param.channel_count; 
    10451045    void *output = ioData->mBuffers[0].mData; 
    1046     unsigned elmt_size = ioData->mBuffers[0].mDataByteSize / inNumberFrames; 
     1046    unsigned elmt_size = ioData->mBuffers[0].mDataByteSize / inNumberFrames / 
     1047                         stream->param.channel_count; 
    10471048    unsigned output_pos = 0; 
    10481049 
Note: See TracChangeset for help on using the changeset viewer.