diff options
author | Chris Robinson <[email protected]> | 2014-06-29 02:04:05 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2014-06-29 02:04:05 -0700 |
commit | 8176d2c058d1744c25a2a520ec9b6882decb4f3f (patch) | |
tree | f287f5298208999e2f9ef32dea96608a83e20847 /OpenAL32/Include/alBuffer.h | |
parent | 389a2f7b4bcffa5cfbe17e8057c8541b0e442bf8 (diff) |
Load soundfont samples into an ALbuffer
Also remove ALsoundfont's now-unneeded sample storage functions and struct
fields.
Diffstat (limited to 'OpenAL32/Include/alBuffer.h')
-rw-r--r-- | OpenAL32/Include/alBuffer.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/OpenAL32/Include/alBuffer.h b/OpenAL32/Include/alBuffer.h index 12a682f4..3e93a883 100644 --- a/OpenAL32/Include/alBuffer.h +++ b/OpenAL32/Include/alBuffer.h @@ -97,6 +97,11 @@ typedef struct ALbuffer { ALuint id; } ALbuffer; +ALbuffer *NewBuffer(ALCcontext *context); +void DeleteBuffer(ALCdevice *device, ALuint bufid); + +ALenum LoadData(ALbuffer *buffer, ALuint freq, ALenum NewFormat, ALsizei frames, enum UserFmtChannels SrcChannels, enum UserFmtType SrcType, const ALvoid *data, ALsizei align, ALboolean storesrc); + inline struct ALbuffer *LookupBuffer(ALCdevice *device, ALuint id) { return (struct ALbuffer*)LookupUIntMapKey(&device->BufferMap, id); } inline struct ALbuffer *RemoveBuffer(ALCdevice *device, ALuint id) |