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()Setbuffer() XBIOSSyntaxLONG Setbuffer( mode, begaddr, endaddr )
WORD mode;
VOIDP begaddr;
VOIDP endaddr;
Function Setbuffer() sets the starting and ending addresses of the
internal play and record buffers.
Opcode 131 (0x83)
Availability Available only when bit #2 of the '_SND' cookie is set.
Parameters mode specifies which registers are to be set. A mode value
of PLAY (0) sets the play registers, a value of RECORD (1)
sets the record registers. begaddr specifies the starting
location of the buffer. endaddr specifies the first invalid
location for sound data past begaddr.
Binding pea endaddr
pea begaddr
move.w mode,-(sp)
move.w #$83,-(sp)
trap #14
lea 12(sp),sp
Return Value Setbuffer() returns a 0 if successful or non-zero otherwise.
See Also Buffoper()