From 8ff95f7a5eb2db0bd56874c6bd797010da97e4df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20D=C3=BCrrenberger?= Date: Fri, 13 Sep 2024 19:43:32 +0200 Subject: [PATCH] Add the missing ChannelMap to the example code --- include/SFML/Audio/SoundStream.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/SFML/Audio/SoundStream.hpp b/include/SFML/Audio/SoundStream.hpp index 0654b0580..12ee9c711 100644 --- a/include/SFML/Audio/SoundStream.hpp +++ b/include/SFML/Audio/SoundStream.hpp @@ -346,11 +346,11 @@ private: /// { /// // Open the source and get audio settings /// ... -/// unsigned int channelCount = ...; -/// unsigned int sampleRate = ...; +/// unsigned int channelCount = 2; // Stereo +/// unsigned int sampleRate = 44100; // 44100 Hz /// /// // Initialize the stream -- important! -/// initialize(channelCount, sampleRate); +/// initialize(channelCount, sampleRate, {sf::SoundChannel::FrontLeft, sf::SoundChannel::FrontRight}); /// return true; /// } ///