•  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_InStream()
Dsp_OutStream()
Dsp_IOStream()                                                        XBIOS

Syntax

VOID Dsp_IOStream( data_in, data_out, block_insize, block_outsize,
                   num_blocks, blocks_done )
char *data_in, *data_out;
LONG block_insize, block_outsize, num_blocks;
LONG *blocks_done;

Function      Dsp_IOStream() uses two interrupt handlers to transmit and
              receive data from the DSP.

Opcode        101 (0x65)

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

Parameters    data_in is a pointer to a buffer in which each output block
              is placed. data_out is a pointer to a buffer used to receive
              each data block from the DSP. block_insize and block_outsize
              represent the size of the blocks to send and receive,
              respectively, in DSP WORDs. num_blocks is the total number
              of blocks to transfer. The LONG pointed at by blocks_done is
              constantly updated to indicate the number of blocks actually
              transferred.

Binding       pea      blocks_done
              move.l   num_blocks,-(sp)
              move.l   block_outsize,-(sp)
              move.l   block_insize,-(sp)
              pea      data_out
              pea      data_in
              move.w   #$65,-(sp)
              trap     #14
              lea      26(sp),sp

Caveats       This call makes the assumption that the DSP will be ready to
              accept a new block as input every time it finishes sending
              a block back to the host.

Comments      No handshaking is performed with this call. If your data is
              error-sensitive, you should use Dsp_BlkHandShake().

See Also      Dsp_InStream(), Dsp_OutStream()