Added audio standalone sample

This commit is contained in:
raysan5
2016-07-16 19:24:08 +02:00
parent 0fbd48a889
commit a05150392a
2 changed files with 78 additions and 5 deletions

View File

@@ -62,17 +62,16 @@
// Sound source type
typedef struct Sound {
unsigned int source;
unsigned int buffer;
AudioError error; // if there was any error during the creation or use of this Sound
unsigned int source; // Sound audio source id
unsigned int buffer; // Sound audio buffer id
} Sound;
// Wave type, defines audio wave data
typedef struct Wave {
void *data; // Buffer data pointer
unsigned int dataSize; // Data size in bytes
unsigned int sampleRate;
short bitsPerSample;
unsigned int sampleRate; // Samples per second to be played
short bitsPerSample; // Sample size in bits
short channels;
} Wave;