Fix sound file docs

This commit is contained in:
Chris Thrasher 2024-05-22 16:37:09 -06:00
parent 8b36da3625
commit e6d4ee7ad1
2 changed files with 2 additions and 6 deletions

View File

@ -275,9 +275,7 @@ private:
/// Usage example:
/// \code
/// // Open a sound file
/// sf::InputSoundFile file;
/// if (!file.openFromFile("music.ogg"))
/// /* error */;
/// auto file = sf::InputSoundFile::openFromFile("music.ogg").value();
///
/// // Print the sound attributes
/// std::cout << "duration: " << file.getDuration().asSeconds() << '\n'

View File

@ -111,9 +111,7 @@ private:
/// Usage example:
/// \code
/// // Create a sound file, ogg/vorbis format, 44100 Hz, stereo
/// sf::OutputSoundFile file;
/// if (!file.openFromFile("music.ogg", 44100, 2))
/// /* error */;
/// auto file = sf::OutputSoundFile::openFromFile("music.ogg", 44100, 2).value();
///
/// while (...)
/// {