MCPcopy Create free account
hub / github.com/audacity/audacity / _swap16Buffer

Function _swap16Buffer

lib-src/soundtouch/source/SoundStretch/WavFile.cpp:105–113  ·  view source on GitHub ↗

helper-function to swap byte-order of buffer of 16bit integers

Source from the content-addressed store, hash-verified

103
104 // helper-function to swap byte-order of buffer of 16bit integers
105 static inline void _swap16Buffer(short *pData, int numWords)
106 {
107 int i;
108
109 for (i = 0; i < numWords; i ++)
110 {
111 pData[i] = _swap16(pData[i]);
112 }
113 }
114
115#else // BIG_ENDIAN
116 // little-endian CPU, WAV file is ok as such

Callers 2

readMethod · 0.85
writeMethod · 0.85

Calls 1

_swap16Function · 0.85

Tested by

no test coverage detected