diff options
| author | jacqueline <me@jacqueline.id.au> | 2023-02-21 14:40:18 +1100 |
|---|---|---|
| committer | jacqueline <me@jacqueline.id.au> | 2023-02-21 14:40:18 +1100 |
| commit | 47ae601d417d0ef99eb6fe433ef695614d8d2786 (patch) | |
| tree | f536ecc214c012c0d69b3a8d350a7a1cadb2f671 /src/codecs/mad.cpp | |
| parent | 941bafca17b13547a88668b787ce4c8e064ef7ff (diff) | |
| download | tangara-fw-47ae601d417d0ef99eb6fe433ef695614d8d2786.tar.gz | |
Tidy up pipeline and use arena capacity to test for overruns
Diffstat (limited to 'src/codecs/mad.cpp')
| -rw-r--r-- | src/codecs/mad.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/codecs/mad.cpp b/src/codecs/mad.cpp index 3fef3bbf..1112bd62 100644 --- a/src/codecs/mad.cpp +++ b/src/codecs/mad.cpp @@ -121,7 +121,7 @@ auto MadMp3Decoder::WriteOutputSamples(cpp::span<std::byte> output) uint32_t sample_24 = scaleTo24Bits(synth_.pcm.samples[channel][current_sample_]); output[output_byte++] = static_cast<std::byte>((sample_24 >> 8) & 0xFF); - output[output_byte++] = static_cast<std::byte>((sample_24) & 0xFF); + output[output_byte++] = static_cast<std::byte>((sample_24)&0xFF); } current_sample_++; } |
