diff options
| author | jacqueline <me@jacqueline.id.au> | 2023-04-04 09:46:52 +1000 |
|---|---|---|
| committer | jacqueline <me@jacqueline.id.au> | 2023-04-19 10:29:40 +1000 |
| commit | 40a9734b04c48339cfdf6ed9043aa3f6f0dda62d (patch) | |
| tree | 4e4d75a3d7c1cc1ec5d0505595224af077940128 /src/codecs/mad.cpp | |
| parent | 3836768bb8b95188e6657ab69027d1d9e4b13a77 (diff) | |
| download | tangara-fw-40a9734b04c48339cfdf6ed9043aa3f6f0dda62d.tar.gz | |
Redo pcm registers to include pages
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 eec2d633..020e0d57 100644 --- a/src/codecs/mad.cpp +++ b/src/codecs/mad.cpp @@ -114,7 +114,7 @@ auto MadMp3Decoder::WriteOutputSamples(cpp::span<std::byte> output) } while (current_sample_ < synth_.pcm.length) { - if (output_byte + (3 * synth_.pcm.channels) >= output.size()) { + if (output_byte + (2 * synth_.pcm.channels) >= output.size()) { return std::make_pair(output_byte, false); } |
