|
Re: Background sound
[Re: INeedMySPace]
#286112
08/23/09 07:10
08/23/09 07:10
|
Joined: Dec 2006
Posts: 1,086 Queensland - Australia
Nidhogg
Serious User
|
Serious User
Joined: Dec 2006
Posts: 1,086
Queensland - Australia
|
Make sure there is no silence at the begining of your music file you may need to edit the music file of course to get rid of the silence at the begining and the end. Also proberly a fade in/out wouldn't hurt either unless you don't want this type of action.
Windows XP SP3 Intel Dual Core CPU: E5200 @ 2.5GHz 4.00GB DDR3 Ram ASUS P5G41T-M LX PCIE x16 GeForce GTS 450 1Gb SB Audigy 4 Spyware Doctor with AntiVirus
|
|
|
Re: Background sound
[Re: INeedMySPace]
#286127
08/23/09 09:55
08/23/09 09:55
|
Joined: Nov 2007
Posts: 1,143 United Kingdom
DJBMASTER
Serious User
|
Serious User
Joined: Nov 2007
Posts: 1,143
United Kingdom
|
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.
|
|
|
|