Store and use an ALbuffer for samples in an ALfontsound
commit389a2f7b4bcffa5cfbe17e8057c8541b0e442bf8
authorChris Robinson <chris.kcat@gmail.com>
Sun, 29 Jun 2014 07:47:29 +0000 (29 00:47 -0700)
committerChris Robinson <chris.kcat@gmail.com>
Sun, 29 Jun 2014 07:47:29 +0000 (29 00:47 -0700)
tree238deea1698705473073b3aafd0494c08c9dd1f2
parentd19e42a723231d63da777d51a3b036683b42e702
Store and use an ALbuffer for samples in an ALfontsound

The fontsound still maintains its own start, end, and loop offsets, so that the
same buffer may be shared between multiple/all fontsounds. Ideally a single
buffer should be used for all fontsounds to avoid memory fragmentation and help
CPU caching, although higher quality soundfonts may need more memory than a
single buffer can hold.
Alc/midi/fluidsynth.c
OpenAL32/Include/alMidi.h
OpenAL32/alFontsound.c