}
btnStop->Enable();
-
- //AudioStreamPlayback.setbuffer(AudioBuffer);
+
AudioStreamPlayback.play();
- /*timespec n1, n2;
-
- n1.tv_sec = 0;
- n1.tv_nsec = 100000000L;*/
-
- //while (TimeA != TimeB){
while (AudioStreamPlayback.getStatus() == sf::SoundSource::Playing){
// We poll this every 100ms in order to conserve CPU usage.
{
// Play the sound.
-
- //sf::Music *AudioPlayback = new sf::Music;
- //AudioStream *AudioStreamPlayback = new AudioStream;
- //sf::SoundBuffer *AudioBuffer = new sf::SoundBuffer;
-
- //sf::Sound *AudioPlayback = new sf::Sound;
-
- //delete(AudioPlayback);
-
- //delete(AudioPlayback);
- //delete(AudioStreamPlayback);
- //delete(AudioBuffer);
-
- //AudioPlayback = NULL;
- //AudioStreamPlayback = NULL;
- //AudioBuffer = NULL;
-
- //return;
long longSelected = -1;
int intSelectedData = 0;