SFML community forums

Help => Audio => Topic started by: BloodGod on May 20, 2008, 03:56:00 pm

Title: Stop() method
Post by: BloodGod on May 20, 2008, 03:56:00 pm
Hi there :)

Some days ago i made some tests with playing ogg files.

I stopped the music with the stop()-method. But after calling the play()-method the music didn't want to play. With pause() everything worked well, except the music was paused and not stopped ;)

Code: [Select]

if (Event.Type == sf::Event::KeyPressed)
{
if(Event.Key.Code == sf::Key::Left)
Music.Stop();
if(Event.Key.Code == sf::Key::Right)
Music.Play();
}


Sincerely,
BloodGod

EDIT:
System is Windows XP SP2 and OpenAL is installed...sound is playing without problems.
Title: Stop() method
Post by: Laurent on May 20, 2008, 04:25:44 pm
Hi

All I can say is that it works fine with the current sources. Maybe you should just wait for version 1.3 ;)
Title: Stop() method
Post by: BloodGod on May 20, 2008, 05:54:21 pm
Hi,

ok, thank you =) This will goad me to improve my waiting skills :roll:

Sincerely,
BloodGod
Title: Stop() method
Post by: workmad3 on May 21, 2008, 11:38:42 am
or try the latest svn ;)
Title: Stop() method
Post by: BloodGod on May 21, 2008, 06:11:13 pm
Hi =)

Quote
or try the latest svn Wink


That's a good idea, i'll try it and report possible success =D Maybe I should try this on Linux, too...

Sincerely,
BloodGod