Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- AdLib and Sound Blaster reference guide.÷+--------------------------------------------------------------+ - <b>function 12</b> : break-out looping voice. http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Function 12     : Break-out Looping voice.

Entry          : BX = 12.
                 AX = 1, Current round stops immediately.
                 AX = 0, Current round continues, looping
                         stops after current round ends.
Exit           : AX = 0, Succesful.
                 AX = 1, No voice in loop.


In the CVFF format, a section of voice(s) can be defined to be output
repeatedly for a number of times or non-stop.
It saves memory when application programs wishes to output a
section of the voice for numerous times.

This function allows the application program to break out of
looping of the voice output and to continue with another process.

Two break-out modes are available:


     A.    When AX = 1, output for current round of voice data is stopped
           immediately and voice output continues from the voice data after
           the repeat loop.


     B.    When AX = 0, output for the current round of voice data is
           not stopped immediately. When the current round of voice
           data ends, output continues from the voice data after the
           repeat loop.


For example, suppose in a data file there are 3 sets of voice data,
[A], [B] and [C]. [A] and [B] are defined to be output repeatedly
non-stop. While CT-VOICE driver is outputting [A], this function
is invoked to break-out from the [A] - [B] loop.

     A.    If AX = 1, the driver stops to output [A] immediately and
           Continues with [C].


     B.    If AX = 0, the driver continues to output [A] and [B] before
           continuing with [C].

To stop the voice completely, use Function 8, "Stop Voice Process".

See Also: Function_8

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson