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

Function interlace_samples_float

extlibs/soloud/src/core/soloud.cpp:1953–1966  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1951 }
1952
1953 void interlace_samples_float(const float *aSourceBuffer, float *aDestBuffer, unsigned int aSamples, unsigned int aChannels)
1954 {
1955 // 111222 -> 121212
1956 unsigned int i, j, c;
1957 c = 0;
1958 for (j = 0; j < aChannels; j++)
1959 {
1960 for (i = j; i < aSamples * aChannels; i += aChannels)
1961 {
1962 aDestBuffer[i] = aSourceBuffer[c];
1963 c++;
1964 }
1965 }
1966 }
1967
1968 void interlace_samples_s16(const float *aSourceBuffer, short *aDestBuffer, unsigned int aSamples, unsigned int aChannels)
1969 {

Callers 1

mixMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected