diff options
| author | raysan5 <raysan5@gmail.com> | 2016-07-16 19:24:08 +0200 |
|---|---|---|
| committer | raysan5 <raysan5@gmail.com> | 2016-07-16 19:24:08 +0200 |
| commit | a05150392a14ded407ffbf8c735dd4f92354fcb8 (patch) | |
| tree | 22a4d68be29ac9c2dcb8cd243524e23c41962d15 /src | |
| parent | 0fbd48a8890d5f3e2158dbec12a6e452b6fb81b0 (diff) | |
| download | raylib-a05150392a14ded407ffbf8c735dd4f92354fcb8.tar.gz raylib-a05150392a14ded407ffbf8c735dd4f92354fcb8.zip | |
Added audio standalone sample
Diffstat (limited to 'src')
| -rw-r--r-- | src/audio.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/audio.h b/src/audio.h index f4a82a55..b6850911 100644 --- a/src/audio.h +++ b/src/audio.h @@ -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; |
