summaryrefslogtreecommitdiffhomepage
path: root/src/audio.h
diff options
context:
space:
mode:
authorRay <[email protected]>2016-07-18 17:09:23 +0200
committerGitHub <[email protected]>2016-07-18 17:09:23 +0200
commiteaec086177e2386b4894be6a4fd3b7467471616b (patch)
tree13ffbb1691b3de67421a93d266c9ceea124a9e20 /src/audio.h
parenta2794379a0e1e2ab1486888aaa710f65d492e0fc (diff)
parentbec58075ff42e71a7ed197a5c67e1aa4641b8a9a (diff)
downloadraylib-eaec086177e2386b4894be6a4fd3b7467471616b.tar.gz
raylib-eaec086177e2386b4894be6a4fd3b7467471616b.zip
Merge pull request #135 from raysan5/develop
Integrate Develop branch
Diffstat (limited to 'src/audio.h')
-rw-r--r--src/audio.h9
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;