diff --git a/cimp.bas b/cimp.bas index 5733d89..07fb0e8 100644 --- a/cimp.bas +++ b/cimp.bas @@ -249,6 +249,15 @@ while keyin<>27 nyan = not nyan elseif left$(client_cmd, 10) = "SOUNDBANK:" then loadsoundbank mid$(client_cmd,11) + if _SNDPLAYING(musichandle) then + oldhandle=musichandle + musichandle=_sndopen(file(i)) + _sndvol musichandle,volume + _sndplay musichandle + _sndsetpos musichandle, _sndgetpos(oldhandle) + _sndstop oldhandle + _sndclose oldhandle + end if elseif left$(client_cmd, 4) = "VOL:" then volume = val(mid$(client_cmd, 5)) / 100 if volume > 1 then volume = 1