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

Author Topic: Stop() method  (Read 26240 times)

0 Members and 1 Guest are viewing this topic.

BloodGod

  • Newbie
  • *
  • Posts: 10
    • View Profile
Stop() method
« 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.
Verlässt du dich auf andere, bist du selbst verlassen ;)

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Stop() method
« Reply #1 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 ;)
Laurent Gomila - SFML developer

BloodGod

  • Newbie
  • *
  • Posts: 10
    • View Profile
Stop() method
« Reply #2 on: May 20, 2008, 05:54:21 pm »
Hi,

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

Sincerely,
BloodGod
Verlässt du dich auf andere, bist du selbst verlassen ;)

workmad3

  • Jr. Member
  • **
  • Posts: 71
    • View Profile
Stop() method
« Reply #3 on: May 21, 2008, 11:38:42 am »
or try the latest svn ;)

BloodGod

  • Newbie
  • *
  • Posts: 10
    • View Profile
Stop() method
« Reply #4 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
Verlässt du dich auf andere, bist du selbst verlassen ;)