SFML community forums
Help => Audio => Topic started by: Jamin Grey on May 14, 2009, 02:39:34 am
-
I'm trying to save recorded sound to a .ogg format. Using a sf::SoundBuffer, I call the SaveToFile (http://www.sfml-dev.org/documentation/1.4/classsf_1_1SoundBuffer.htm) function, and named the file 'test.ogg', but the file doesn't appear. 'test.wav' works, though.
I see on the features page (http://www.sfml-dev.org/features.php), "Can load and save standard sound formats : ogg, wav, flac, aiff, au, raw, paf, svx, nist, voc, ircam, w64, mat4, mat5 pvf, htk, sds, avr, sd2, caf, wve, mpc2k, rf64". Is saving to ogg vorbis supported in SFML, or just the loading?
I couldn't see .ogg at all (saving or loading), on libsndfile's homepage, so I'm probably looking in the wrong place.
-
ogg handling has been added to libsndfile recently, and is part of SFML 2.0 (you can get the latest sources in the "sfml2" branch from SVN). If you're on Linux, you'll need at least libsndfile 1.0.18.
-
Thanks, I can save .ogg files now.
And thank you for the excellent API.