•  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()
Setmode()                                                             XBIOS

Syntax

LONG Setmode( mode )
WORD mode;

Function      Setmode() sets the mode of operation for the play and record
              registers.

Opcode        132 (0x84)

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

Parameters    mode defines the playback and record mode as follows:

              Name          mode   Meaning

              MODE_STEREO8    0    8-bit Stereo Mode

              MODE_STEREO16   1    16-bit Stereo Mode

              MODE_MONO       2    8-bit Mono Mode

Binding       move.w   mode,-(sp)
              move.w   #$84,sp
              trap     #14
              addq.l   #4,sp

Return Value  Setmode() returns 0 if the operation was successful or
              non-zero otherwise.

Caveats       Recording only works in 16-bit stereo mode.

See Also      Buffoper()