summaryrefslogtreecommitdiffhomepage
path: root/examples/audio
diff options
context:
space:
mode:
authorRay <[email protected]>2021-06-03 23:36:47 +0200
committerRay <[email protected]>2021-06-03 23:36:47 +0200
commite00d2439b98f969c84cb4b75e2719e6ca21d9dc3 (patch)
treecc545e78e8eaea0c628c9685257da300fbbf4cae /examples/audio
parent7e68e733f525ced1a0565c3fb1245c706409fa82 (diff)
downloadraylib-e00d2439b98f969c84cb4b75e2719e6ca21d9dc3.tar.gz
raylib-e00d2439b98f969c84cb4b75e2719e6ca21d9dc3.zip
WARNING: BREAKING: Consistency renamings
RENAMED: InitAudioStream() -> LoadAudioStream() RENAMED: CloseAudioStream() -> UnloadAudioStream()
Diffstat (limited to 'examples/audio')
-rw-r--r--examples/audio/audio_raw_stream.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/audio/audio_raw_stream.c b/examples/audio/audio_raw_stream.c
index 783c54a7..636eb005 100644
--- a/examples/audio/audio_raw_stream.c
+++ b/examples/audio/audio_raw_stream.c
@@ -32,7 +32,7 @@ int main(void)
InitAudioDevice(); // Initialize audio device
// Init raw audio stream (sample rate: 22050, sample size: 16bit-short, channels: 1-mono)
- AudioStream stream = InitAudioStream(22050, 16, 1);
+ AudioStream stream = LoadAudioStream(22050, 16, 1);
// Buffer for the single cycle waveform we are synthesizing
short *data = (short *)malloc(sizeof(short)*MAX_SAMPLES);
@@ -155,7 +155,7 @@ int main(void)
free(data); // Unload sine wave data
free(writeBuf); // Unload write buffer
- CloseAudioStream(stream); // Close raw audio stream and delete buffers from RAM
+ UnloadAudioStream(stream); // Close raw audio stream and delete buffers from RAM
CloseAudioDevice(); // Close audio device (music streaming is automatically stopped)
CloseWindow(); // Close window and OpenGL context