•  Back 
  •  Libraries 
  •  Index 
  •  Tree View 
  •  Cross references 
  •  Help 
  •  Show info about hypertext 
  •  View a new file 
Topic       : Pure C Library Documentation
Author      : John Kormylo
Version     : LIB.HYP 1.0
Subject     : Documentation/Pure C Library
Nodes       : 1309
Index Size  : 32068
HCP-Version : 3
Compiled on : Atari
@charset    : atarist
@lang       : en
@default    : 
@help       : Help
@options    : +g -i -s +x +z -t4
@width      : 75
View Ref-File[ Sndstatus ]

#include <tos.h> 

long sndstatus( int reset );

  <reset> selects whether to reset the sound system (1) or not (0).


Function returns the error status and/or resets the sound system.
Resetting writes zeros to all of the sound system registers.

It returns the error status of the sound system:
  Bits 0-3: 0 = no error
            1 = invalid control field
            2 = bad sync format
            3 = invalid sampling rate
  Bit 4 = clipping on left channel (1)
  Bit 5 = clipping on right channel (1)


Note: Available when '_SND' cookie has bit 2 set (see Cookies).

XBIOS Opcode 140

See also XBIOS Sound.