NAudio
NAudio copied to clipboard
[BUG] Artwork in ID3 mp3 tags causing sample rate error.
Thanks to user bgr at Altfuture we have confirmed that this issue https://github.com/naudio/NAudio/issues/229 is caused by artwork being present in the ID3tag data of mp3's causing sample rate errors.
Old issue but if you just want to play audio, you can try to remove tags before reading. My temporary solution: https://github.com/Milkitic/Milki.Extensions/blob/main/src/Milki.Extensions.MixPlayer/NAudioExtensions/Wave/SmartWaveReader.cs#L145-L166
I recommend using MediaFoundationReader
instead of Mp3FileReader
if possible, as that will not have this issue with ID3 tags