mirror of
https://github.com/SFML/SFML.git
synced 2024-11-24 20:31:05 +08:00
Fix sound file docs
This commit is contained in:
parent
8b36da3625
commit
e6d4ee7ad1
@ -275,9 +275,7 @@ private:
|
|||||||
/// Usage example:
|
/// Usage example:
|
||||||
/// \code
|
/// \code
|
||||||
/// // Open a sound file
|
/// // Open a sound file
|
||||||
/// sf::InputSoundFile file;
|
/// auto file = sf::InputSoundFile::openFromFile("music.ogg").value();
|
||||||
/// if (!file.openFromFile("music.ogg"))
|
|
||||||
/// /* error */;
|
|
||||||
///
|
///
|
||||||
/// // Print the sound attributes
|
/// // Print the sound attributes
|
||||||
/// std::cout << "duration: " << file.getDuration().asSeconds() << '\n'
|
/// std::cout << "duration: " << file.getDuration().asSeconds() << '\n'
|
||||||
|
@ -111,9 +111,7 @@ private:
|
|||||||
/// Usage example:
|
/// Usage example:
|
||||||
/// \code
|
/// \code
|
||||||
/// // Create a sound file, ogg/vorbis format, 44100 Hz, stereo
|
/// // Create a sound file, ogg/vorbis format, 44100 Hz, stereo
|
||||||
/// sf::OutputSoundFile file;
|
/// auto file = sf::OutputSoundFile::openFromFile("music.ogg", 44100, 2).value();
|
||||||
/// if (!file.openFromFile("music.ogg", 44100, 2))
|
|
||||||
/// /* error */;
|
|
||||||
///
|
///
|
||||||
/// while (...)
|
/// while (...)
|
||||||
/// {
|
/// {
|
||||||
|
Loading…
Reference in New Issue
Block a user