Sfoglia il codice sorgente

mini_al: Unify the buffer system for Sounds and AudioStreams.

pull/413/head
David Reid 7 anni fa
parent
commit
60d7215b2a
2 ha cambiato i file con 369 aggiunte e 467 eliminazioni
  1. +367
    -465
      src/audio.c
  2. +2
    -2
      src/raylib.h

+ 367
- 465
src/audio.c
File diff soppresso perché troppo grande
Vedi File


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

Caricamento…
Annulla
Salva