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

Author Topic: Sound from Resource  (Read 2751 times)

0 Members and 1 Guest are viewing this topic.

Brokenhope

  • Newbie
  • *
  • Posts: 3
    • View Profile
    • Email
Sound from Resource
« on: April 20, 2017, 07:45:50 pm »
I was looking into using SFML to play sounds in a game I have created. It is Win32, using GDI+. I like to keep everything nice and tidy in the resource .rc file.

What I am wondering is, is there a way I can load a .mid file from the resource into the sound buffer. I was looking at example code and openFromMemory() looked like a potential possibility.

any thoughts?

Mario

  • SFML Team
  • Hero Member
  • *****
  • Posts: 879
    • View Profile
Re: Sound from Resource
« Reply #1 on: April 21, 2017, 08:54:42 am »
SFML doesn't support loading resources directly nor loading or sampling MIDI files. However, since your application seems to be Windows only anyway, you could just use Windows' Media Control Interface for playback.

 

anything