diff options
author | Chris Robinson <[email protected]> | 2017-02-21 11:17:47 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2017-02-21 11:17:47 -0800 |
commit | cd24e42b3f7887867735db2cd35a0c4137163379 (patch) | |
tree | 90158d7958ea4e72826c231d97d37f6687dd2014 /OpenAL32/Include | |
parent | e0e6efbfeac7bb07dce82b63b7688648e1067da3 (diff) |
Make the voices' Send[] array dynamically sized
The voices are still all allocated in one chunk to avoid memory fragmentation.
But they're accessed as an array of pointers since the size isn't static.
Diffstat (limited to 'OpenAL32/Include')
-rw-r--r-- | OpenAL32/Include/alMain.h | 2 | ||||
-rw-r--r-- | OpenAL32/Include/alSource.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h index bb8a57ce..76862f38 100644 --- a/OpenAL32/Include/alMain.h +++ b/OpenAL32/Include/alMain.h @@ -812,7 +812,7 @@ struct ALCcontext_struct { ALfloat GainBoost; - struct ALvoice *Voices; + struct ALvoice **Voices; ALsizei VoiceCount; ALsizei MaxVoices; diff --git a/OpenAL32/Include/alSource.h b/OpenAL32/Include/alSource.h index c63aef70..53e9a2f4 100644 --- a/OpenAL32/Include/alSource.h +++ b/OpenAL32/Include/alSource.h @@ -106,7 +106,7 @@ typedef struct ALvoice { ALfloat (*Buffer)[BUFFERSIZE]; ALsizei Channels; - } Send[MAX_SENDS]; + } Send[]; } ALvoice; |