forked from xbmc/xbmc
-
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.
[AE][SoftAE] Fixed segfaults & improved WAV handling
Previously when a sound was played, if the format did not match the sink format it would be re-loaded from the disk and re-sampled each time the sink re-opened. This behaviour has been changed so that the samples are cached along with the original format information. This will reduce the re-init latency. A new method has been added to check if the current output WAV format is compatible with the required output format, so that re-init is not performed when it is not required. This fixes the soft suspend issue with SoftAE in CSoftAE::MixSounds which caused stack smashing. This also fixes a long standing bug in CSoftAE::MixSounds when multiple sounds are played at once that was also causing stack smashing.
- Loading branch information
Geoffrey McRae
committed
Sep 26, 2012
1 parent
360f41d
commit 255052e
Showing
5 changed files
with
204 additions
and
104 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
Oops, something went wrong.