Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

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.


Messages - trinistry_

Pages: [1]
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!

2
Audio / No sound though all seems correct
« on: August 20, 2011, 09:08:54 pm »
Hello,

I have a weird Problem. The code:

Code: [Select]

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;
}


produced output:

Code: [Select]
sound status: 2 sound duration: 0.767574

As far as I know, status 2 is "playing". There is no error or warning in linkage nor in compiler. But I do not hear anything (and yes, the sound plays in media player for example, my boxes are turned on etc...)

I am using SFML 1.6 and VS Express 2010 on Windows 7. I recompiled the sfml-dlls (not the libsndfile-1.dll and the openal32.dll - is this the reason?).

Target is "debug".

Is there anything I am missing? Could it be that the wrong sound device is taken or something?

Please help! Thanks!

Pages: [1]