[futurebasic] Re: Sound Bug

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : August 1998 : Group Archive : Group : All Groups

From: warren <wfurman@...>
Date: Sun, 30 Aug 1998 02:49:08 -0500
>There is an FN in the sounds examples that allows me to change the computer's
>sound volume. In in Cave Fox 2001 I originally had the feature to set the
>volume and then restore it when the game quit, however when ever a quick time
>file was playing, (for the music in the game) changing the volume with the
>music playing crashes the computer horribly. Any suggestions? Stopping the
>movie then changing the volume does not work either =(

Never tried this with a QT movie, but it has worked fine for me otherwise:

FN VC
  SOUND END
  DIM pBlock.100
  Pblock.ioCompletion& =  0                       'completion rtn
  Pblock.dCtlRefNum%   = -4                       'drvr ref num
  Pblock.CsCode%       =  2                       'control code
  Pblock.CSParam%      =  sndLevel                'sndLevel 0-7
  OSErr = FN CONTROL(@Pblock)
END FN

-Warren