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

Author Topic: Can sf::SoundBuffer have multiple sounds?  (Read 3392 times)

0 Members and 1 Guest are viewing this topic.

epicasian

  • Newbie
  • *
  • Posts: 14
    • View Profile
Can sf::SoundBuffer have multiple sounds?
« on: July 24, 2010, 04:43:15 am »
Title is basically my entire question. I think I remember SDL having something that could store multiple sounds, but I'm not quite sure.

Thanks in advance,
~Asian

PS. SFML is AMAZING!:D

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Can sf::SoundBuffer have multiple sounds?
« Reply #1 on: July 24, 2010, 10:46:09 am »
A sound buffer is basically an array of audio samples (16 bits integers), so you can put whatever you want in it. Storing multiple sounds is as easy as concatenating their arrays and creating a new sound buffer from that.
Laurent Gomila - SFML developer

 

anything