| 182 | //============================================================================= |
| 183 | |
| 184 | static void QueueOneFrame(short* dest, UINT& index, short sample_in) |
| 185 | { |
| 186 | // add one frame to the speaker buffer |
| 187 | const short sample = DCFilter(sample_in); |
| 188 | short * begin = dest + (index * g_nSPKR_NumChannels); |
| 189 | std::fill_n(begin, g_nSPKR_NumChannels, sample); |
| 190 | // and advance its position |
| 191 | index++; |
| 192 | } |
| 193 | |
| 194 | static void PadNFrames(short* dest, uint32_t sizeBytes) |
| 195 | { |
no test coverage detected