SFML community forums

Help => Audio => Topic started by: xero7689 on December 26, 2013, 12:37:36 pm

Title: Can't Play Music
Post by: xero7689 on December 26, 2013, 12:37:36 pm
My program is executed successfully but the music doesn't play.

This are message I copy from console:
OpenGL Warning: Failed to connect to host. Make sure 3D acceleration is enabled for this VM.
libGL error: failed to load driver: vboxvideo
libGL error: Try again with LIBGL_DEBUG=verbose for more details.
Failed to load image "ksk.jpg". Reason : Unable to open file
AL lib: (EE) ALSAProc: Wait timeout... buffer size too low?
AL lib: (EE) ALSAProc: Wait timeout... buffer size too low?
AL lib: (EE) ALSAProc: Wait timeout... buffer size too low?
 

and the code I use to play music:
sf::Music music;
if(!music.openFromFile("heroes.ogg"))
    return EXIT_FAILURE;
music.play();
 

The program is compiled and executed on arch-linux 64bit installed under virtual-box.

(This is the first time I post question. If there is  any information I forgot to provide please tell me, thanks.)
Title: AW: Can't Play Music
Post by: eXpl0it3r on December 26, 2013, 06:11:35 pm
Can you play other sounds in the VM?
You also need to activate hardware acceleration in your VM settings for the rendering to work properly.
Title: Re: Can't Play Music
Post by: xero7689 on December 27, 2013, 11:22:55 am
Thanks, I'll go back to check my vm setting.