diff options
| author | jacqueline <me@jacqueline.id.au> | 2023-01-30 15:52:54 +1100 |
|---|---|---|
| committer | jacqueline <me@jacqueline.id.au> | 2023-01-30 15:52:54 +1100 |
| commit | ef8d404b15e6d32506617a95aa3161fbe59ecdaf (patch) | |
| tree | f05d5f0a81b1477846e85bf44f0154db015b9789 /src/codecs | |
| parent | 2cc0a38a1ac7fc54d7333dafa8b99479a7f5dc86 (diff) | |
| download | tangara-fw-ef8d404b15e6d32506617a95aa3161fbe59ecdaf.tar.gz | |
Continue ironing out i2s pipeline
still at least one heap corruption issue, plus the i2s write method
seems to block forever :/
Diffstat (limited to 'src/codecs')
| -rw-r--r-- | src/codecs/mad.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/codecs/mad.cpp b/src/codecs/mad.cpp index a8c2fb11..dc75a892 100644 --- a/src/codecs/mad.cpp +++ b/src/codecs/mad.cpp @@ -43,7 +43,8 @@ auto MadMp3Decoder::GetOutputFormat() -> OutputFormat { return OutputFormat{ .num_channels = static_cast<uint8_t>(synth_.pcm.channels), .bits_per_sample = 24, - .sample_rate_hz = synth_.pcm.samplerate, + .sample_rate_hz = + synth_.pcm.samplerate == 0 ? 44100 : synth_.pcm.samplerate, }; } |
