summaryrefslogtreecommitdiffhomepage
path: root/examples/audio
diff options
context:
space:
mode:
authorraysan5 <[email protected]>2021-07-05 19:45:57 +0200
committerraysan5 <[email protected]>2021-07-05 19:45:57 +0200
commite6aa713a377d60a5a0f3453f376fe8ad9d2fcdf7 (patch)
tree4a3b23095591f7c436d952cb87f844724edab868 /examples/audio
parente18aad065301364bca94b0a700810d1c5c8e748c (diff)
downloadraylib-e6aa713a377d60a5a0f3453f376fe8ad9d2fcdf7.tar.gz
raylib-e6aa713a377d60a5a0f3453f376fe8ad9d2fcdf7.zip
REVIEWED: Need to set default buffer size for raw data #1770
This design should probably be changed...
Diffstat (limited to 'examples/audio')
-rw-r--r--examples/audio/audio_raw_stream.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/audio/audio_raw_stream.c b/examples/audio/audio_raw_stream.c
index 636eb005..8dba9745 100644
--- a/examples/audio/audio_raw_stream.c
+++ b/examples/audio/audio_raw_stream.c
@@ -31,8 +31,10 @@ int main(void)
InitAudioDevice(); // Initialize audio device
+ SetAudioStreamBufferSizeDefault(4096);
+
// Init raw audio stream (sample rate: 22050, sample size: 16bit-short, channels: 1-mono)
- AudioStream stream = LoadAudioStream(22050, 16, 1);
+ AudioStream stream = LoadAudioStream(44100, 16, 1);
// Buffer for the single cycle waveform we are synthesizing
short *data = (short *)malloc(sizeof(short)*MAX_SAMPLES);