MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / interlace_samples_s16

Function interlace_samples_s16

extlibs/soloud/src/core/soloud.cpp:1968–1981  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1966 }
1967
1968 void interlace_samples_s16(const float *aSourceBuffer, short *aDestBuffer, unsigned int aSamples, unsigned int aChannels)
1969 {
1970 // 111222 -> 121212
1971 unsigned int i, j, c;
1972 c = 0;
1973 for (j = 0; j < aChannels; j++)
1974 {
1975 for (i = j; i < aSamples * aChannels; i += aChannels)
1976 {
1977 aDestBuffer[i] = (short)(aSourceBuffer[c] * 0x7fff);
1978 c++;
1979 }
1980 }
1981 }
1982
1983 void Soloud::lockAudioMutex()
1984 {

Callers 1

mixSigned16Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected