mirror of
https://github.com/SFML/SFML.git
synced 2024-11-25 04:41: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
|
/// // Open the source and get audio settings
|
||||||
/// ...
|
/// ...
|
||||||
/// unsigned int channelCount = ...;
|
/// unsigned int channelCount = 2; // Stereo
|
||||||
/// unsigned int sampleRate = ...;
|
/// unsigned int sampleRate = 44100; // 44100 Hz
|
||||||
///
|
///
|
||||||
/// // Initialize the stream -- important!
|
/// // Initialize the stream -- important!
|
||||||
/// initialize(channelCount, sampleRate);
|
/// initialize(channelCount, sampleRate, {sf::SoundChannel::FrontLeft, sf::SoundChannel::FrontRight});
|
||||||
/// return true;
|
/// return true;
|
||||||
/// }
|
/// }
|
||||||
///
|
///
|
||||||
|
Loading…
Reference in New Issue
Block a user