Hi!
I'm confused with strange snd_loop behavior.
hdlCurrent = snd_loop(music_1, 100, 0);
It plays my background sound, but it place it somewhere in 3D and when I move and rotate my camera I hear sound moving from one speaker to another. Can I change this behavior?
When I use media_loop instead, music is played like it should be (like in media player). But when new loop begins - where is some little delay and noise sound between iterations. Can I preload music files for media_loop to play seamless?
What is the best practice to play background sound loops?
Thanks in advance for any solution.
Hmm snd_loop should play the sound in 2D and i see that you have the balance set to 0 so it is equal on either speaker. Playing a sound in 3D would use ent_playloop.
media_loop streams the music, and so preloading the file is the opposite of what it is supposed to do. For using preloaded files you have to use the snd_play/loop functions.