pdeljanov / Symphonia

Pure Rust multimedia format demuxing, tag reading, and audio decoding library
Mozilla Public License 2.0
2.29k stars 135 forks source link

Mono MP3 audio is sped up when using symphonia-play #281

Open n0samu opened 4 months ago

n0samu commented 4 months ago

symphonia-play seems to play mono MP3 audio at double-speed. I am testing on 64-bit Windows 10. Here is an example MP3 file that reproduces the issue: 427_muz1.zip I was also able to reproduce it by converting any stereo MP3 to mono using ffmpeg -i stereo.mp3 -ac 1 mono.mp3, then playing the converted mono.mp3 file. This issue isn't very important since it only affects symphonia-play, but I ran across it while testing other things so I figured I should log it.

GameBakerStudio commented 1 month ago

Is this still an issue for you? I had this error with other playing software, and fixed it. Can you provide some source code? I advise checking stuff like sample rate. I can help with using CPAL, as I find that easier.

n0samu commented 1 month ago

The symphonia-play source code is here https://github.com/pdeljanov/Symphonia/tree/master/symphonia-play/src