Add the missing ChannelMap to the example code

This commit is contained in:
Lukas Dürrenberger 2024-09-13 19:43:32 +02:00
parent 2116a3ba85
commit 8ff95f7a5e

View File

@ -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;
/// }
///