Removes pthread_kill() to avoid one lock/unlock race
Uses equal length samples from music/effect streams when mixing
The threading logic for this code was rather poor prior to this commit.
As such, I make no claims to the correctness of the threading code
within this commit as the assumptions presented by the code previously
installed in the audio engine are not clearly stated.
The code as presented fixes some of the issues involved in mixing, however
effect + ogg music still seems to pose an issue and the reasons why are
unclear. A rewrite of the architecture of the audio engine is recommended.
Add Separate Buffers For Music/FX
These commits:
The threading logic for this code was rather poor prior to this commit. As such, I make no claims to the correctness of the threading code within this commit as the assumptions presented by the code previously installed in the audio engine are not clearly stated.
The code as presented fixes some of the issues involved in mixing, however effect + ogg music still seems to pose an issue and the reasons why are unclear. A rewrite of the architecture of the audio engine is recommended.