cwAudioFile.cpp : Fixed comment in _write_audio<S,D>().
This commit is contained in:
parent
c78cab6e56
commit
c38420ab47
@ -1282,7 +1282,7 @@ namespace cw
|
||||
{
|
||||
rc_t rc = kOkRC;
|
||||
|
||||
// Determine the size of the temporary buffer used for deinterleaving, type conversion and file writing
|
||||
// Determine the size of the temporary buffer used for interleaving, type conversion and file writing
|
||||
unsigned bufFrmCnt = std::min(srcBufFrmCnt,4096u);
|
||||
unsigned bufSmpCnt = bufFrmCnt*chCnt;
|
||||
|
||||
@ -1296,10 +1296,10 @@ namespace cw
|
||||
// copy as many samples as are available into the temp. buffer
|
||||
unsigned copyFrmN = std::min( bufFrmCnt, srcBufFrmCnt - sfi );
|
||||
|
||||
// deinterleave the source channel signal arrays into the temp buffer
|
||||
// interleave the source channel signal arrays into the temp buffer
|
||||
for(unsigned fi=0,si=0; fi<copyFrmN; ++fi)
|
||||
for(unsigned sci=0; sci<chCnt; ++sci,++si)
|
||||
sbuf[si] = srcPtrPtr[sci][sfi+fi];
|
||||
for(unsigned sci=0; sci<chCnt; ++sci)
|
||||
sbuf[si++] = srcPtrPtr[sci][sfi+fi];
|
||||
|
||||
// convert the sample data types and write the result to the output file
|
||||
if((rc = _write_samples(p,copyFrmN*chCnt,sbuf,dbuf)) != kOkRC )
|
||||
|
Loading…
Reference in New Issue
Block a user