NAudio icon indicating copy to clipboard operation
NAudio copied to clipboard

[BUG] Artwork in ID3 mp3 tags causing sample rate error.

Open RSDNTWK opened this issue 3 years ago • 2 comments

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.

RSDNTWK avatar Apr 07 '21 16:04 RSDNTWK

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

Milkitic avatar Aug 02 '22 02:08 Milkitic

I recommend using MediaFoundationReader instead of Mp3FileReader if possible, as that will not have this issue with ID3 tags

markheath avatar Aug 06 '22 13:08 markheath