aboutsummaryrefslogtreecommitdiff
path: root/src/raylib.h
diff options
context:
space:
mode:
authorraysan5 <raysan5@gmail.com>2016-08-15 16:35:11 +0200
committerraysan5 <raysan5@gmail.com>2016-08-15 16:35:25 +0200
commit342b89c5b920ceec8cd41a8f4cf5ab69f2d825f6 (patch)
tree150a5e2360bae0251614562789291108fe3148ad /src/raylib.h
parent852813bdf19445a80fa8de9daef052f9f1b72c74 (diff)
downloadraylib-342b89c5b920ceec8cd41a8f4cf5ab69f2d825f6.tar.gz
raylib-342b89c5b920ceec8cd41a8f4cf5ab69f2d825f6.zip
Review Wave struct
Diffstat (limited to 'src/raylib.h')
-rw-r--r--src/raylib.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/raylib.h b/src/raylib.h
index c2e65b68..22494aec 100644
--- a/src/raylib.h
+++ b/src/raylib.h
@@ -490,11 +490,11 @@ typedef struct Sound {
// Wave type, defines audio wave data
typedef struct Wave {
+ unsigned int sampleCount; // Number of samples
+ unsigned int sampleRate; // Frequency (samples per second)
+ 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 *data; // Buffer data pointer
- unsigned int dataSize; // Data size in bytes
- unsigned int sampleRate; // Samples per second to be played
- short bitsPerSample; // Sample size in bits
- short channels;
} Wave;
// Music type (file streaming from memory)