-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix - Fixed a nasty bug with CLI player
We've fixed a bug when playing any music in the CLI player. --- We've fixed a very nasty bug regarding corrupted data that MPG123 reports by moving the total duration out of the playback loop. Details ======= When MPG123 plays a music by the PlaybackTools.Play() function from Basolia, subsequent calls to AudioInfoTools.GetDuration(true) causes the buffer that Play() uses to become corrupt, essentially causing messages talking about invalid MPEG data to appear in the console, hence messing the TUI up. According to the libmpg123.c native code version 1.31.3, mpg123_scan() calls an internal function, seek_frame(), to try to seek to the beginning of the music stream. After that, it runs a loop in which it tests for this condition: read_frame(mh) == 1. This loop increments both the track frame count by 1 and the track samples by the "samples per frame" variable found in the mh struct, mh->spf. --- Type: fix Breaking: False Doc Required: False Part: 1/1
- Loading branch information
Showing
3 changed files
with
29 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters