diff options
Diffstat (limited to 'examples/audio')
| -rw-r--r-- | examples/audio/audio_raw_stream.c | 4 |
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 |
