mirror of
https://github.com/SFML/SFML.git
synced 2024-11-24 20:31:05 +08:00
Add the missing ChannelMap to the example code
This commit is contained in:
parent
2116a3ba85
commit
8ff95f7a5e
@ -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;
|
||||
/// }
|
||||
///
|
||||
|
Loading…
Reference in New Issue
Block a user