aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/Include
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2014-06-29 00:47:29 -0700
committerChris Robinson <[email protected]>2014-06-29 00:47:29 -0700
commit389a2f7b4bcffa5cfbe17e8057c8541b0e442bf8 (patch)
tree238deea1698705473073b3aafd0494c08c9dd1f2 /OpenAL32/Include
parentd19e42a723231d63da777d51a3b036683b42e702 (diff)
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.
Diffstat (limited to 'OpenAL32/Include')
-rw-r--r--OpenAL32/Include/alMidi.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/OpenAL32/Include/alMidi.h b/OpenAL32/Include/alMidi.h
index d18c165e..7fdd3f9b 100644
--- a/OpenAL32/Include/alMidi.h
+++ b/OpenAL32/Include/alMidi.h
@@ -34,6 +34,8 @@ typedef struct ALenvelope {
typedef struct ALfontsound {
RefCount ref;
+ struct ALbuffer *Buffer;
+
ALint MinKey, MaxKey;
ALint MinVelocity, MaxVelocity;