mirror of
https://github.com/SFML/SFML.git
synced 2025-01-18 15:25:12 +08:00
Fix Channel Map size in documentation
This commit is contained in:
parent
03812a545d
commit
c4d4e8f62a
@ -439,11 +439,10 @@ private:
|
|||||||
/// sf::SoundChannel::FrontCenter,
|
/// sf::SoundChannel::FrontCenter,
|
||||||
/// sf::SoundChannel::FrontRight,
|
/// sf::SoundChannel::FrontRight,
|
||||||
/// sf::SoundChannel::BackRight,
|
/// sf::SoundChannel::BackRight,
|
||||||
/// sf::SoundChannel::BackCenter,
|
|
||||||
/// sf::SoundChannel::BackLeft,
|
/// sf::SoundChannel::BackLeft,
|
||||||
/// sf::SoundChannel::LowFrequencyEffects
|
/// 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);
|
/// auto sound = sf::Sound(soundBuffer);
|
||||||
/// \endcode
|
/// \endcode
|
||||||
///
|
///
|
||||||
|
@ -433,11 +433,10 @@ auto channelMap = std::vector<sf::SoundChannel>{
|
|||||||
sf::SoundChannel::FrontCenter,
|
sf::SoundChannel::FrontCenter,
|
||||||
sf::SoundChannel::FrontRight,
|
sf::SoundChannel::FrontRight,
|
||||||
sf::SoundChannel::BackRight,
|
sf::SoundChannel::BackRight,
|
||||||
sf::SoundChannel::BackCenter,
|
|
||||||
sf::SoundChannel::BackLeft,
|
sf::SoundChannel::BackLeft,
|
||||||
sf::SoundChannel::LowFrequencyEffects
|
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);
|
auto sound = sf::Sound(soundBuffer);
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user