From 7121b7854360f416864a24014c8e51de17f7e115 Mon Sep 17 00:00:00 2001 From: Dmitry Marakasov Date: Mon, 31 Aug 2015 18:41:01 +0300 Subject: [PATCH] Fix comment --- examples/mixer_music_sine.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/examples/mixer_music_sine.cc b/examples/mixer_music_sine.cc index 15159f8..f4d6618 100644 --- a/examples/mixer_music_sine.cc +++ b/examples/mixer_music_sine.cc @@ -30,13 +30,12 @@ using namespace SDL2pp; int main() try { SDL sdl(SDL_INIT_AUDIO); - Mixer mixer(MIX_DEFAULT_FREQUENCY, AUDIO_S16SYS, 1, 4096); float frequency = 2093.00f; // C7 tone int64_t nsample = 0; - // Open audio device + // Set custom music hook which generates a sine wave mixer.SetMusicHook([&nsample, frequency](Uint8* stream, int len) { // fill provided buffer with sine wave for (Uint8* ptr = stream; ptr < stream + len; ptr += 2)