•  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-FileSetbuffer()
Buffoper()
Buffptr()                                                             XBIOS

Syntax

LONG Buffptr( sptr )
SBUFPTR *sptr;

Function      Buffptr() returns the current position of the playback and
              record pointers.

Opcode        141 (0x8D)

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

Parameter     sptr is a pointer to a SBUFPTR structure which is filled in
              with the current pointer values. SBUFPTR is defined as
              follows:

              typedef struct
              {
               VOIDP playptr;
               VOIDP recordptr;
               VOIDP reserved1;
               VOIDP reserved2;
              } SBUFPTR;

Binding       pea      sptr
              move.w   #$8d,-(sp)
              trap     #14
              addq.l   #6,sp

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

See Also      Setbuffer(), Buffoper()