* 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. */
| 187 | * order. |
| 188 | */ |
| 189 | static void |
| 190 | InterleaveDsfBlockStereo(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 | |
| 199 | static void |
| 200 | InterleaveDsfBlockChannel(std::byte *gcc_restrict dest, |
no outgoing calls
no test coverage detected