From e00d2439b98f969c84cb4b75e2719e6ca21d9dc3 Mon Sep 17 00:00:00 2001 From: Ray Date: Thu, 3 Jun 2021 23:36:47 +0200 Subject: WARNING: BREAKING: Consistency renamings RENAMED: InitAudioStream() -> LoadAudioStream() RENAMED: CloseAudioStream() -> UnloadAudioStream() --- examples/audio/audio_raw_stream.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples') 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 -- cgit v1.2.3