1
Audio / Re: Audio Issue
« on: August 02, 2012, 11:25:51 pm »
No console errors, though when I call the sounds getStatus() it returns 2 (Sound::Playing).
It just dosen't play.
here's the hedder for the class:
Cheers
It just dosen't play.
here's the hedder for the class:
#ifndef PLAYSOUNDEVENT_H_
#define PLAYSOUNDEVENT_H_
#include <SFML/Audio.hpp>
#include "Event.h"
class PlaySoundEvent: public Event
{
sf::SoundBuffer sound;
public:
PlaySoundEvent(sf::SoundBuffer sound);
virtual ~PlaySoundEvent();
void fire();
};
#endif /* PLAYSOUNDEVENT_H_ */
#define PLAYSOUNDEVENT_H_
#include <SFML/Audio.hpp>
#include "Event.h"
class PlaySoundEvent: public Event
{
sf::SoundBuffer sound;
public:
PlaySoundEvent(sf::SoundBuffer sound);
virtual ~PlaySoundEvent();
void fire();
};
#endif /* PLAYSOUNDEVENT_H_ */
Cheers