Ok, this is a rare thing,
sometimes, and only sometimes, around once every 15-20 loadings of
a whole level, I began to notice that some of the sound files were mute,
explosions-sounds or shot-sounds or whatever, were not being played,
it doesn't happen with all the sounds, only with one or two at a time,
when I stop the program execution I found my sound variables
had a cero value.
Then, if a sound is not loaded and you don't do any check, then the
debugger never returns an error, that is why the game level still
loads completely and run without problems ...
Try this code and you will see no error prompts:
But above all, my question is,
what possible reasons could there be to make
a Load3DSound() or LoadSound() returns a 0 value?
I mean, the sounds are there, the path is correct, and they are
loaded without problems most of time ... so I don't know what
to do since this is a bug I can not reproduce whenever I want to.
Paolo.
sometimes, and only sometimes, around once every 15-20 loadings of
a whole level, I began to notice that some of the sound files were mute,
explosions-sounds or shot-sounds or whatever, were not being played,
it doesn't happen with all the sounds, only with one or two at a time,
when I stop the program execution I found my sound variables
had a cero value.
Then, if a sound is not loaded and you don't do any check, then the
debugger never returns an error, that is why the game level still
loads completely and run without problems ...
Try this code and you will see no error prompts:
Graphics3D 320,240,16,2 c=CreateCube() listener=CreateListener(0) sound=0 SoundVolume sound,.5 SoundPitch sound,.5 PlaySound(sound) PlaySound sound chan=EmitSound(sound,c) ChannelVolume chan,.5 ChannelPitch chan,44100 Print "no errror at all"
But above all, my question is,
what possible reasons could there be to make
a Load3DSound() or LoadSound() returns a 0 value?
I mean, the sounds are there, the path is correct, and they are
loaded without problems most of time ... so I don't know what
to do since this is a bug I can not reproduce whenever I want to.
Paolo.