ggez: mp3 SoundSource elapsed() is incorrect (increments too fast)
Describe the bug SoundSource created from an mp3 file has accurate audio playback, however the duration returned from elapsed() is inaccurate. The duration increments much faster than the actual playback. This problem does not occur with ogg. Issue occurs on both windows and linux.
To Reproduce
Add any mp3 file to the resources folder and edit examples/sounds to load that mp3 file.
Run cargo run --example sounds and notice Elapsed time increments faster than audio playback.
Expected behavior
Elapsed time: seconds should line up with audio playback.
Screenshots

Hardware and Software:
- ggez version: 0.5.2-r.2 & current git master
- OS: Windows 10 and Linux (Solus)
- Graphics card: N/A
- Graphics card drivers: N/A
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 15 (7 by maintainers)
@tarkah allright. Thank you for the patient explanation 😃 I actually saw the commit yesterday but did not think twice about it. So good job in reaching the correct conclusion!
Good find, thanks! Leave this issue open so we know to double-check it and update rodio when possible.
@icefoxen @mbillingr It’d help if I took a look at the commit history for Rodio. https://github.com/tomaka/rodio/commit/dba627a1b4b0562b6b30b17befc3108e356f3e6c resolves this. No new release has been created since this commit.