1
Audio / No sound though all seems correct
« on: August 20, 2011, 09:31:03 pm »
Argh! Sure you are right.
Sorry for stupid question and many thanks for support!
Sorry for stupid question and many thanks for support!
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
sf::SoundBuffer buffer;
if (buffer.LoadFromFile("assets/sound/bonk.wav")) {
sf::Sound sound;
sound.SetBuffer(buffer);
sound.Play();
std::cout << "sound status: " << sound.GetStatus() << " sound duration: " << buffer.GetDuration() << std::endl;
}
sound status: 2 sound duration: 0.767574