mini_al: Unify the buffer system for Sounds and AudioStreams.
This commit is contained in:
parent
261b00e9e8
commit
60d7215b2a
836
src/audio.c
836
src/audio.c
File diff suppressed because it is too large
Load Diff
@ -486,7 +486,7 @@ typedef struct Wave {
|
|||||||
|
|
||||||
// Sound source type
|
// Sound source type
|
||||||
typedef struct Sound {
|
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 source; // OpenAL audio source id
|
||||||
unsigned int buffer; // OpenAL audio buffer 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 sampleSize; // Bit depth (bits per sample): 8, 16, 32 (24 not supported)
|
||||||
unsigned int channels; // Number of channels (1-mono, 2-stereo)
|
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
|
int format; // OpenAL audio format specifier
|
||||||
unsigned int source; // OpenAL audio source id
|
unsigned int source; // OpenAL audio source id
|
||||||
|
Loading…
Reference in New Issue
Block a user