The RECORD SOUND command removes the existing sound, and then initiates recording.
The STOP RECORDING command ensures that the recording stops at the current point (if it hasn't already reached the time limit), then
it creates the sound.
So the sound does not exist until you carry out the stop, and you can't start another until you have stopped the previous one.
BTW, the optional parameter is simply an override of the default value of 5000 - there's no difference between the following two commands:
record sound 1
record sound 1, 5000
There's a small bug in there too though - if you start recording one one sound, then start recording with different settings on a second sound, the second sounds parameters are ignored (it's still recording), but when you stop recording, the recording is placed in the second sound.
Basically, this will record one second of sound and place it in sound 2:
record sound 1, 1000
record sound 2, 2000
wait 2000
stop recording sound
for i = 1 to 2
print "Sound "; i;
if sound exist(i)
print " exists"
else
print " does not exist"
endif
next
wait key
end
I believe that something is being done to fix that ready for the next beta.