I have a few problems concerning setting a VoIP up for my MMORPG I am making.... You I can load everything else fine but when I press the key to talk I get a few problems:
(1)-the 3D movement freezes until Playback of the sound is done.
(2)-I cannot make the playback real-time...
It wil record set amount of time, then playback same amount of
time...
Here is a sample of the code:
rem RECORD THEN PLAYBACK SOUND FILE AS '.WAV'
sync on : sync rate 30
false=0 : true=1
DO
VoIP()
sync
LOOP
function VoIP
print "RECORDING IN PROGRESS..."
record sound 1,1000
wait 1000
stop recording sound
save sound "VoIP.wav",1
PlayBack()
endfunction
function PlayBack
print "PLAYBACK IN PROGRESS..."
load sound "VoIP.wav",2
play sound 2
wait 1000
delete sound 2
endfunction
Any help would be VERY appreciated. Thanks!