Add audio looping, simplify audio API

Audio can be played with 1 call, audio_beginVorbisStream which
encapsulates the initialisation of the renderer and release on finish.
OpenAL is quoted to have a limitation of around 32 sources. Audio
renderers hence acquire a source slot on playback and immediately release
on finish. This ensures that sources are held optimally and minimises the
possibility of saturating the available sources.

Renderers hold an index to the source list, which the index reveals the
source ID for their use.
This commit is contained in:
doylet committed 2016-07-27 22:50:14 +10:00
1 parent 824d8fd8a0
commit 630f2eaa5d
6 files changed
+156 -46

No files matched your search

Binary file not shown.