diff --git a/include/SFML/Audio/SoundBuffer.hpp b/include/SFML/Audio/SoundBuffer.hpp index 07beac57c..db2f48eea 100644 --- a/include/SFML/Audio/SoundBuffer.hpp +++ b/include/SFML/Audio/SoundBuffer.hpp @@ -439,11 +439,10 @@ private: /// sf::SoundChannel::FrontCenter, /// sf::SoundChannel::FrontRight, /// sf::SoundChannel::BackRight, -/// sf::SoundChannel::BackCenter, /// sf::SoundChannel::BackLeft, /// sf::SoundChannel::LowFrequencyEffects /// }; -/// auto soundBuffer = sf::SoundBuffer(samples.data(), samples.size(), 6, 44100, channelMap); +/// auto soundBuffer = sf::SoundBuffer(samples.data(), samples.size(), channelMap.size(), 44100, channelMap); /// auto sound = sf::Sound(soundBuffer); /// \endcode /// diff --git a/migration.md b/migration.md index a0caca493..f08af8c98 100644 --- a/migration.md +++ b/migration.md @@ -433,11 +433,10 @@ auto channelMap = std::vector{ sf::SoundChannel::FrontCenter, sf::SoundChannel::FrontRight, sf::SoundChannel::BackRight, - sf::SoundChannel::BackCenter, sf::SoundChannel::BackLeft, sf::SoundChannel::LowFrequencyEffects }; -auto soundBuffer = sf::SoundBuffer(samples.data(), samples.size(), 6, 44100, channelMap); +auto soundBuffer = sf::SoundBuffer(samples.data(), samples.size(), channelMap.size(), 44100, channelMap); auto sound = sf::Sound(soundBuffer); ```