MCPcopy Create free account
hub / github.com/MusicPlayerDaemon/MPD / InterleaveDsfBlockStereo

Function InterleaveDsfBlockStereo

src/decoder/plugins/DsfDecoderPlugin.cxx:189–197  ·  view source on GitHub ↗

* DSF data is build up of alternating 4096 blocks of DSD samples for left and * right. Convert the buffer holding 1 block of 4096 DSD left samples and 1 * block of 4096 DSD right samples to 8k of samples in normal PCM left/right * order. */

Source from the content-addressed store, hash-verified

187 * order.
188 */
189static void
190InterleaveDsfBlockStereo(std::byte *gcc_restrict dest,
191 const std::byte *gcc_restrict src)
192{
193 for (size_t i = 0; i < DSF_BLOCK_SIZE; ++i) {
194 dest[2 * i] = src[i];
195 dest[2 * i + 1] = src[DSF_BLOCK_SIZE + i];
196 }
197}
198
199static void
200InterleaveDsfBlockChannel(std::byte *gcc_restrict dest,

Callers 1

InterleaveDsfBlockFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected