-
-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mp3 file time inaccurate #504
Comments
The only reliable way to scrub an audio file is to decompress all of it into memory. Maybe then compress it in memory with ADPCM. All else will be laggy at best, wrong at worst. |
@AnsisMalins precise jumping is not a problem and not laggy when you can reliably calculate the position in the file stream. For cbr mp3, this is very easy to do. For vbr, the file needs to be "indexed", but not fully processed. libvlc does this automagically. UltraStar Deluxe also can correctly jump with vbr audio files when using the bass audio backend or when using ffmpeg and have audio and video in the same media file. |
Unity confirmed the issue. |
Lets hope. |
I added a workaround in Melody Mania v1.4.2-beta6
This Unity bug would be less of an issue if there would be a way to load audio in Unity in a non-blocking way without setting See example repo on GitHub: https://github.com/achimmihca/UnityAudioPositionIssueMp3 |
Actual behaviour
Change position in mp3 file is sometimes inaccurate with Unity.
This affects for example
In contrast, when playing the song from the start then the time position is correct.
Expected behaviour
Setting a new time for audio playback should be accurate.
Steps to reproduce
Here is a minimum reproducable example: https://github.com/achimmihca/UnityAudioPositionIssueMp3
Hints
The text was updated successfully, but these errors were encountered: