From c4d4e8f62a75445fcdd50602a9c8f8aa3ef95e18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20D=C3=BCrrenberger?= Date: Fri, 20 Dec 2024 00:17:32 +0100 Subject: [PATCH] Fix Channel Map size in documentation --- include/SFML/Audio/SoundBuffer.hpp | 3 +-- migration.md | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) 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); ```