SFML community forums

Help => Audio => Topic started by: epicasian on July 24, 2010, 04:43:15 am

Title: Can sf::SoundBuffer have multiple sounds?
Post by: epicasian 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
Title: Can sf::SoundBuffer have multiple sounds?
Post by: Laurent 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.