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

Syntax

VOID Dsp_DoBlock( data_in, size_in, data_out, size_out )
char *data_in;
LONG size_in;
char *data_out;
LONG size_out;

Function      Dsp_DoBlock() transfers bytewise packed data to the DSP and
              returns the data processed by the running subroutine or
              program.

Opcode        96 (0x60)

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

Parameters    data_in is a character array containing data to transfer to
              the DSP. size_in specifies the number of DSP words to
              transfer. For example, if Dsp_GetWordSize() returns 3, the
              first 3 bytes from data_in are stored in the first DSP word,
              the next 3 bytes are stored in the next DSP word and so on.
              data_out points to a character array where the output will
              be stored in a similar manner. size_out represents the size
              of this array.

Binding       move.l   size_out,-(sp)
              pea      data_out
              move.l   size_in,-(sp)
              pea      data_in
              move.w   #$60,-(sp)
              trap     #14
              lea      18(sp),sp

Caveats       No handshaking is performed with this call. Data which is
              sensitive to errors should use Dsp_BlkHandShake().

See Also      Dsp_BlkHandShake()