jarikomppa / soloud

Free, easy, portable audio engine for games
http://soloud-audio.com
Other
1.8k stars 284 forks source link

playing one sample twice at the same time #148

Closed shultays closed 7 years ago

shultays commented 7 years ago

I am new to sound libraries and couldn't figure how to do this.

I load a wav file to SoLoud::Wav then I play it with play function of Soloud. Hover if I play same sample twice, it simple mutes its and starts it from the beginning.

I checked the flags of ::Wav and SINGLE_INSTANCE is not set. So I assume it should be able to play it multiple times at the same time. Is this correct?

I believe I can always load multiple samples of same file but that looks wrong and wasteful.

thanks

shultays commented 7 years ago

uhh, my bad. I was hearing wrong. disregard this issue.