Blame toonz/sources/sound/tsioutils.cpp
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
#include "tcommon.h"
|
|
Toshihiro Shimizu |
890ddd |
|
|
Campbell Barton |
8c6c57 |
#include "tsioutils.h"
|
|
Campbell Barton |
8c6c57 |
|
|
Toshihiro Shimizu |
890ddd |
//------------------------------------------------------------------------------
|
|
Shinya Kitaoka |
120a6e |
void swapAndCopySamples(short *srcBuffer, short *dstBuffer,
|
|
Shinya Kitaoka |
120a6e |
TINT32 sampleCount) {
|
|
Shinya Kitaoka |
120a6e |
short *srcSample = srcBuffer;
|
|
Shinya Kitaoka |
120a6e |
short *dstSample = dstBuffer;
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
short *endSrcSample = srcSample + sampleCount;
|
|
Shinya Kitaoka |
120a6e |
while (srcSample < endSrcSample) *dstSample++ = swapShort(*srcSample++);
|
|
Toshihiro Shimizu |
890ddd |
}
|