-
Notifications
You must be signed in to change notification settings - Fork 530
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
simplify/fix sdl2 sound backend, fixes no audio in CLI
- simplified ring-buffer mechanism - added proper locking for all variables accessed by 2 different threads - fixed oob writes that occassionally crashed SDL's "Alsa Hotplug thread" - make buffer sufficiently large to prebuffer enough samples to survive the occassional SDL_Delay(1) in the frontend. - fixed ignoring volume set by the SPU. - improved speed and robustness by not calling malloc over and over in SDL callback, and copying directly to the SDL buffer if volume is max (no need to use mixer to lower the volume in that case).
- Loading branch information
Showing
1 changed file
with
69 additions
and
67 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