mini_al: Unify the buffer system for Sounds and AudioStreams.

This commit is contained in:
David Reid 2017-11-18 08:42:14 +10:00
parent 261b00e9e8
commit 60d7215b2a
2 changed files with 371 additions and 469 deletions

File diff suppressed because it is too large Load Diff

View File

@ -486,7 +486,7 @@ typedef struct Wave {
// Sound source type
typedef struct Sound {
void* handle; // A pointer to internal data used by the audio system.
void* audioBuffer; // A pointer to internal data used by the audio system.
unsigned int source; // OpenAL audio source id
unsigned int buffer; // OpenAL audio buffer id
@ -504,7 +504,7 @@ typedef struct AudioStream {
unsigned int sampleSize; // Bit depth (bits per sample): 8, 16, 32 (24 not supported)
unsigned int channels; // Number of channels (1-mono, 2-stereo)
void* handle; // A pointer to internal data used by the audio system.
void* audioBuffer; // A pointer to internal data used by the audio system.
int format; // OpenAL audio format specifier
unsigned int source; // OpenAL audio source id