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

Author Topic: Can't Play Music  (Read 2790 times)

0 Members and 1 Guest are viewing this topic.

xero7689

  • Newbie
  • *
  • Posts: 2
    • View Profile
    • Email
Can't Play Music
« 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.)

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11035
    • View Profile
    • development blog
    • Email
AW: Can't Play Music
« Reply #1 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.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

xero7689

  • Newbie
  • *
  • Posts: 2
    • View Profile
    • Email
Re: Can't Play Music
« Reply #2 on: December 27, 2013, 11:22:55 am »
Thanks, I'll go back to check my vm setting.

 

anything