•  Back 
  •  Sound routines 
  •  Index 
  •  Tree View 
  •  Cross references 
  •  Help page 
  •  Show info about hypertext 
  •  View a new file 
Topic       : TOS - The Operating System
Author      : 
Version     : tos.hyp (December 19, 2008)
Subject     : Programmieren/Atari
Nodes       : 3010
Index Size  : 93790
HCP-Version : 5
Compiled on : Atari
@charset    : atarist
@lang       : 
@default    : Title
@help       : 
@options    : +g -i -s +x +zz -t4
@width      : 70
View Ref-File4.17.9  setmode                                                    TOS

 Name:         »setmode« - Select record/playback mode

 Opcode:       132

 Syntax:       int32_t setmode( int16_t mode );

 Description:  The XBIOS routine setmode sets the mode of operation of 
               the record and playback registers.

                mode  Meaning 
                 0     8 Bit stereo 
                 1    16 Bit stereo 
                 2     8 Bit mono 

               If bit 5 of the '_SND' cookie is set, there may be 
               further modes available that set playback and record 
               modes separately in the low and high byte of mode. If 
               the value of -1 is passed for mode, then the current 
               setting will be returned without change.

               0x0003 16 Bit mono playback
               0x0004 24 Bit stereo playback
               0x0005 32 Bit stereo playback
               0x0006 24 Bit mono playback
               0x0007 32 Bit mono playback


               0x0000 16 Bit stereo record
               0x0100  8 Bit stereo record
               0x0200  8 Bit mono record
               0x0300 16 Bit mono record
               0x0400 24 Bit stereo record
               0x0500 32 Bit stereo record
               0x0600 24 Bit mono record
               0x0700 32 Bit mono record


 Return value: If successful the function returns the value 0, or 
               non-zero otherwise.

 Availability: The function is only available on computers of the 
               Falcon series, or with extended XBIOS routines (_SND).

 Group:        Sound routines

 See also:     Binding   buffoper   buffptr   devconnect   dsptristate 
                 gpio   locksnd   setbuffer   setinterrupt 
               setmontracks   settracks   sndstatus   soundcmd 
               unlocksnd