Welcome,
Guest
. Please
login
or
register
. Did you miss your
activation email?
French forum
Home
Help
Search
Login
Register
SFML community forums
»
Help
»
Audio
»
Can sf::SoundBuffer have multiple sounds?
Print
Pages: [
1
]
Author
Topic: Can sf::SoundBuffer have multiple sounds? (Read 3402 times)
0 Members and 1 Guest are viewing this topic.
epicasian
Newbie
Posts: 14
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
Logged
Laurent
Administrator
Hero Member
Posts: 32498
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.
Logged
Laurent Gomila - SFML developer
Print
Pages: [
1
]
SFML community forums
»
Help
»
Audio
»
Can sf::SoundBuffer have multiple sounds?