Browse Source

mini_al: Unify the buffer system for Sounds and AudioStreams.

pull/413/head
David Reid 7 years ago
parent
commit
60d7215b2a
2 changed files with 369 additions and 467 deletions
  1. +367
    -465
      src/audio.c
  2. +2
    -2
      src/raylib.h

+ 367
- 465
src/audio.c
File diff suppressed because it is too large
View File


+ 2
- 2
src/raylib.h 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

Loading…
Cancel
Save