•  Back 
  •  XBIOS Function Reference 
  •  Index 
  •  Tree View 
  •  Cross references 
  •  %About 
  •  Show info about hypertext 
  •  View a new file 
Topic       : The ATARI Compendium
Author      : Scott Sanders / JAY Software
Version     : 1.25 (20/6/2003)
Subject     : Documentation
Nodes       : 1117
Index Size  : 32614
HCP-Version : 6
Compiled on : Atari
@charset    : UTF-8
@lang       : en
@default    : 
@help       : %About
@options    : +g -i -t4 +y +z
@width      : 100
View Ref-FileBuffoper()
Setinterrupt()                                                        XBIOS

Syntax

LONG Setinterrupt( mode, cause )
WORD mode, cause;

Function      Setinterrupt() defines the conditions under which an
              interrupt is generated by the sound system

Opcode        135 (0x87)

Availability  Available only when bit #2 of the '_SND' cookie is set.

Parameters    mode configures interrupts to occur when the end of a buffer
              is reached. A value of INT_TIMERA (0) for mode sets Timer A,
              a value of INT_I7 (1) sets the MFP i7 interrupt.
              cause defines the conditions for the interrupt as follows:

              Name        cause  Meaning

              INT_DISABLE   0    Disable interrupt

              INT_PLAY      1    Interrupt at end of play buffer

              INT_RECORD    2    Interrupt at end of record buffer

              INT_BOTH      3    Interrupt at end of both buffers

Binding       move.w   cause,-(sp)
              move.w   mode,-(sp)
              move.w   #$87,-(sp)
              trap     #14
              addq.l   #6,sp

Return Value  Setinterrupt() returns 0 if no error occurred or non-zero
              otherwise.

Comments      If either buffer is in repeat mode, these interrupts can be
              used to double-buffer sounds.

See Also      Buffoper()