The following routines for sound programming are available on the Falcon030:
• buffoper | Sets record/playback mode. |
• buffptr | Gets record/playback mode. |
• devconnect | Connects audio subsystem components. |
• dsptristate | Coordinates external DSP hardware. |
• gpio | Communication via the external DSP port. |
• locksnd | Locks sound system for other applications. |
• setbuffer | Sets record/playback buffer addresses. |
• setinterrupt | Sets interrupt at the end of recording/playback. |
• setmode | Selects record/playback mode. |
• setmontracks | Sets playback track for internal loudspeaker. |
• settracks | Sets number of record and playback tracks. |
• sndstatus | Gets status of the A/D and D/A converter. |
• soundcmd | Sets/gets the parameters of the A/D and D/A converter. |
• StarTrack | XBIOS extension for the StarTrack card. |
• unlocksnd | Frees sound system for other applications. |
• WavePlay | Replays a sample. |
Note: The availability of these routines on other computer systems can be ascertained via the McSn-Cookie or the _SND cookie.
Name: | »buffoper« - Set or read record/playback mode
| ||||||||||||
Opcode: | 136
| ||||||||||||
Syntax: | int32_t buffoper( int16_t mode );
| ||||||||||||
Description: | The XBIOS routine buffoper sets or reads the record and
playback mode of the harware sound system.
If the value -1 is passed for mode, then the current setting will be established. Otherwise mode is coded as follows:
Set bits switch an operation on, cleared bits off. | ||||||||||||
Return value: | If successfull the function returns the value 0. If -1 was
passed for mode, the return will show the current state of the
sound system, whose coding corresponds to the parameter mode.
| ||||||||||||
Availability: | The function is only available on computers of the Falcon
series, or with extended XBIOS routines (_SND).
| ||||||||||||
Group: | Sound routines
| ||||||||||||
See also: | Binding buffptr devconnect dsptristate gpio locksnd
setbuffer setinterrupt setmontracks setmode settracks
sndstatus soundcmd unlocksnd
|
C: | #include <tos.h>
int32_t buffoper( int16_t mode ); |
Assembler: |
move.w mode,-(sp) ; Offset 2 move.w #136,-(sp) ; Offset 0 trap #14 ; Call XBIOS addq.l #4,sp ; Correct stack |
Name: | »buffptr« - Get current record/playback mode
|
Opcode: | 141
|
Syntax: | int32_t buffptr( int32_t *ptr );
|
Description: | The XBIOS routine buffptr ascertains the current playback and
record positions in the corresponding buffers.
ptr points to a buffer at least 4 longwords in size. The position pointers will be stored in that. The first int32_t of the buffer contains a pointer to the current playback position and the second int32_t a pointer to the current record position. |
Return value: | If successful the function returns the value 0, or non-zero
otherwise.
|
Availability: | The function is only available on computers of the Falcon
series, or with extended XBIOS routines (_SND).
|
Group: | Sound routines
|
See also: | Binding buffoper devconnect dsptristate gpio locksnd
setbuffer setinterrupt setmontracks setmode settracks
sndstatus soundcmd unlocksnd
|
C: | #include <tos.h>
int32_t buffptr( int32_t *ptr ); |
Assembler: |
pea ptr ; Offset 2 move.w #141,-(sp) ; Offset 0 trap #14 ; Call XBIOS addq.l #6,sp ; Correct stack |
Name: | »devconnect« - Connect audio subsystem components
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Opcode: | 139
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Syntax: | int32_t devconnect( int16_t src, int16_t dst, int16_t srcclk,
int16_t prescale, int16_t protocol );
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Description: | The XBIOS routine devconnect connects a source component in
the audio subsystem to one or more destination components using the
connection matrix.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Return value: | The function returns the value 0 if the operation was
successfull, or non-zero otherwise.
In TOS 4.04 a value of 0 is returned if the src parameter is illegal, and a random value otherwise. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Availability: | The function is only available on computers of the Falcon
series, or with extended XBIOS routines (_SND).
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Group: | Sound routines
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
See also: | Binding buffoper buffptr dsptristate gpio locksnd
setbuffer setinterrupt setmontracks setmode settracks
sndstatus soundcmd unlocksnd
|
C: | #include <tos.h>
int32_t devconnect( int16_t src, int16_t dst, int16_t srcclk, int16_t prescale, int16_t protocol ); |
Assembler: |
move.w protocol,-(sp) ; Offset 10 move.w prescale,-(sp) ; Offset 8 move.w srcclk,-(sp) ; Offset 6 move.w dst,-(sp) ; Offset 4 move.w src,-(sp) ; Offset 2 move.w #139,-(sp) ; Offset 0 trap #14 ; Call XBIOS lea $C(sp),sp ; Correct stack |
Name: | »dsptristate« - Coordinate external DSP hardware
| ||||||
Opcode: | 137
| ||||||
Syntax: | int32_t dsptristate( int16_t dspxmit, int16_t dsprec );
| ||||||
Description: | The XBIOS routine dsptristate uncouples connections from the
multiplexer connection matrix when external hardware is connected to
the SSI port of the DSP.
| ||||||
Return value: | The function returns the value 0 if the operation was
successfull, or non-zero otherwise.
| ||||||
Availability: | The function is only available on computers of the Falcon
series.
| ||||||
Group: | Sound routines
| ||||||
See also: | Binding buffoper buffptr devconnect gpio locksnd
setbuffer setinterrupt setmontracks setmode settracks
sndstatus soundcmd unlocksnd
|
C: | #include <tos.h>
int32_t dsptristate( int16_t dspxmit, int16_t dsprec ); |
Assembler: |
move.w dsprec,-(sp) ; Offset 4 move.w dspxmit,-(sp) ; Offset 2 move.w #137,-(sp) ; Offset 0 trap #14 ; Call XBIOS addq.l #6,sp ; Correct stack |
Name: | »gpio« - Communication via the external DSP port
| ||||||||
Opcode: | 138
| ||||||||
Syntax: | int32_t gpio( int16_t mode, int16_t data );
| ||||||||
Description: | The XBIOS routine gpio serves for communication via the
general purpose pins of the external DSP connector.
| ||||||||
Return value: | If successful, the function returns the value 0. If the
parameter data had the value 1, one obtains the state of the
general purpose pins.
| ||||||||
Availability: | The function is only available on computers of the Falcon
series, or with extended XBIOS routines (_SND).
| ||||||||
Group: | Sound routines
| ||||||||
See also: | Binding buffoper buffptr devconnect dsptristate
locksnd setbuffer setinterrupt setmontracks setmode
settracks sndstatus soundcmd unlocksnd
|
C: | #include <tos.h>
int32_t gpio( int16_t mode, int16_t data ); |
Assembler: |
move.w data,-(sp) ; Offset 4 move.w mode,-(sp) ; Offset 2 move.w #138,-(sp) ; Offset 0 trap #14 ; Call XBIOS addq.l #6,sp ; Correct stack |
Name: | »locksnd« - Lock sound system for other applications
|
Opcode: | 128
|
Syntax: | int32_t locksnd( void );
|
Description: | The XBIOS routine locksnd locks the sound system to prevent it
being used by other applications at the same time.
|
Return value: | If successful, the function returns the value 1. If the sound
system is already assigned then a negative value will be returned.
|
Availability: | The function is only available on computers of the Falcon
series, or with extended XBIOS routines (_SND).
|
Group: | Sound routines
|
See also: | Binding buffoper buffptr devconnect dsptristate gpio
setbuffer setinterrupt setmontracks setmode settracks
sndstatus soundcmd unlocksnd
|
C: | #include <tos.h>
int32_t locksnd( void ); |
Assembler: |
move.w #128,-(sp) ; Offset 0 trap #14 ; Call XBIOS addq.l #2,sp ; Correct stack |
Name: | »setbuffer« - Set record/playback buffer addresses
|
Opcode: | 131
|
Syntax: | int32_t setbuffer( int16_t reg, void *begaddr, void *endaddr );
|
Description: | The XBIOS routine setbuffer sets the buffer address for the
playback (reg = 0) or record data (reg = 1). The
parameter begaddr points to the start of the buffer and
endaddr to the last byte + 1 of the buffer.
Note: The memory has to be reserved with the Gemdos function Mxalloc(size, 0). |
Return value: | DIf successful the function returns the value 0, or non-zero
otherwise.
|
Availability: | The function is only available on computers of the Falcon
series, or with extended XBIOS routines (_SND).
|
Group: | Sound routines
|
See also: | Binding buffoper buffptr devconnect dsptristate gpio
locksnd setinterrupt setmontracks setmode settracks
sndstatus soundcmd unlocksnd
|
C: | #include <tos.h>
int32_t setbuffer( int16_t reg, void *begaddr, void *endaddr ); |
Assembler: |
pea endaddr ; Offset 8 pea begaddr ; Offset 4 move.w reg,-(sp) ; Offset 2 move.w #131,-(sp) ; Offset 0 trap #14 ; Call XBIOS lea $C(sp),sp ; Correct stack |
Name: | »setinterrupt« - Set interrupt at the end of
recording/playback
| ||||||||||||||||||||
Opcode: | 135
| ||||||||||||||||||||
Syntax: | int32_t setinterrupt( int16_t src_inter, int16_t cause );
| ||||||||||||||||||||
Description: | The XBIOS routine setinterrupt determines which interrupt is
to be generated by the sound system when the end of a recording or
playback buffer is reached.
| ||||||||||||||||||||
Return value: | If successful the function returns the value 0, or non-zero
otherwise.
| ||||||||||||||||||||
Availability: | The function is only available on computers of the Falcon
series, or with extended XBIOS routines (_SND).
| ||||||||||||||||||||
Group: | Sound routines
| ||||||||||||||||||||
See also: | Binding buffoper buffptr devconnect dsptristate gpio
locksnd setbuffer setmontracks setmode settracks sndstatus
soundcmd unlocksnd
|
C: | #include <tos.h>
int32_t setinterrupt( int16_t src_inter, int16_t cause ); |
Assembler: |
move.w cause,-(sp) ; Offset 4 move.w src_inter,-(sp) ; Offset 2 move.w #135,-(sp) ; Offset 0 trap #14 ; Call XBIOS addq.l #6,sp ; Correct stack |
Name: | »setmode« - Select record/playback mode
| ||||||||
Opcode: | 132
| ||||||||
Syntax: | int32_t setmode( int16_t mode );
| ||||||||
Description: | The XBIOS routine setmode sets the mode of operation of the
record and playback registers.
If bit 5 of the '_SND' cookie is set, there may be further modes available that set playback and record modes separately in the low and high byte of mode. If the value of -1 is passed for mode, then the current setting will be returned without change. 0x0003 16 Bit mono playback 0x0004 24 Bit stereo playback 0x0005 32 Bit stereo playback 0x0006 24 Bit mono playback 0x0007 32 Bit mono playback 0x0000 16 Bit stereo record 0x0100 8 Bit stereo record 0x0200 8 Bit mono record 0x0300 16 Bit mono record 0x0400 24 Bit stereo record 0x0500 32 Bit stereo record 0x0600 24 Bit mono record 0x0700 32 Bit mono record | ||||||||
Return value: | If successful the function returns the value 0, or non-zero
otherwise.
| ||||||||
Availability: | The function is only available on computers of the Falcon
series, or with extended XBIOS routines (_SND).
| ||||||||
Group: | Sound routines
| ||||||||
See also: | Binding buffoper buffptr devconnect dsptristate gpio
locksnd setbuffer setinterrupt setmontracks settracks
sndstatus soundcmd unlocksnd
|
C: | #include <tos.h>
int32_t setmode( int16_t mode ); |
Assembler: |
move.w mode,-(sp) ; Offset 2 move.w #132,-(sp) ; Offset 0 trap #14 ; Call XBIOS addq.l #4,sp ; Correct stack |
Name: | »setmontracks« - Set playback track for internal loudspeaker
|
Opcode: | 134
|
Syntax: | int32_t setmontracks( int16_t montrack );
|
Description: | The XBIOS routine setmontracks specifies which track should be
output via the internal loudspeaker. This can only play back one track
at a time.
montrack determines one of the four available tracks to monitor, which are numbered from 0 to 3. |
Return value: | If successful the function returns the value 0, or non-zero
otherwise.
|
Availability: | The function is only available on computers of the Falcon
series, or with extended XBIOS routines (_SND).
|
Group: | Sound routines
|
See also: | Binding buffoper buffptr devconnect dsptristate gpio
locksnd setbuffer setinterrupt setmode settracks sndstatus
soundcmd unlocksnd
|
C: | #include <tos.h>
int32_t setmontracks( int16_t montrack ); |
Assembler: |
move.w montrack,-(sp) ; Offset 2 move.w #134,-(sp) ; Offset 0 trap #14 ; Call XBIOS addq.l #4,sp ; Correct stack |
Name: | »settracks« - Set number of record and playback tracks
|
Opcode: | 133
|
Syntax: | int32_t settracks( int16_t playtracks, int16_t rectracks );
|
Description: | The XBIOS routine settracks sets the number of the recording
(rectracks) and playback tracks (playtracks). A
maximum of 4 stereo tracks is available at a time. The value -1 is
passed as the argument!
|
Return value: | If successful the function returns the value 0, or non-zero
otherwise.
|
Availability: | The function is only available on computers of the Falcon
series.
|
Group: | Sound routines
|
See also: | Binding buffoper buffptr devconnect dsptristate gpio
locksnd setbuffer setinterrupt setmontracks setmode
sndstatus soundcmd unlocksnd
|
C: | #include <tos.h>
int32_t settracks( int16_t playtracks, int16_t rectracks ); |
Assembler: |
move.w rectracks,-(sp) ; Offset 4 move.w playtracks,-(sp) ; Offset 2 move.w #133,-(sp) ; Offset 0 trap #14 ; Call XBIOS addq.l #6,sp ; Correct stack |
Name: | »sndstatus« - Get status of the A/D and D/A converter
| ||||||||||||
Opcode: | 140
| ||||||||||||
Syntax: | int16_t sndstatus( int16_t reset );
| ||||||||||||
Description: | The XBIOS routine sndstatus obtains the current status of the
A/D and D/A converter. It can also reinitialize it.
If reset has the value 1, the A/D and D/A converter will be reinitialized (among others, the overflow bits will be cleared). Otherwise the current status will be obtained. If bit 5 in the '_SND' cookie is set, some other status queries are available: reset Function return value 2 Inquire bit-depth Bit 0 set: 8Bit Bit 1 set: 16Bit Bit 2 set: 24Bit Bit 3 set: 32Bit 3 Inquire available inputs for MasterMix output Bit 0 set: A/D converter (ADC-InMix bypass) Bit 1 set: D/A converter (DAC/Multiplexer) Bit 2 set: Mic Bit 3 set: FM generator Bit 4 set: Line Bit 5 set: CD Bit 6 set: TV Bit 7 set: Aux1 4 Inquire available inputs for A/D converter Bit 0 set: Mic right Bit 1 set: Mic left Bit 2 set: FM generator right Bit 3 set: FM generator left Bit 4 set: Line right Bit 5 set: Line left Bit 6 set: CD right Bit 7 set: CD left Bit 8 set: TV right Bit 9 set: TV left Bit 10 set: Aux1 right Bit 11 set: Aux1 left Bit 12 set: Mixer right (MasterMix) Bit 13 set: Mixer left (MasterMix) Bit 16 set: D/A converter rechts Bit 17 set: D/A converter left 5 Inquire duplex operation Bit 0 set: Simultaneous record/playback possible 8 Inquire 8-bit sample formats 9 Inquire 16-bit sample formats 10 Inquire 24-bit sample formats 11 Inquire 32-bit sample formats Bit 0 set: Signed Bit 1 set: Unsigned Bit 2 set: Motorola big-endian if > 8-bit Bit 3 set: Intel little-endian of > 8-bit 0x8900 Inquire value of Falcon030 registers 0xff8900 and 0xff8901 %0000 xxxx 00xx 00xx |||| || || |||| || ||>Playback enable |||| || |>Playback repeat |||| ||>Record enable |||| |>Record repeat ||||>MFP-15 Int. at Playback end |||>MFP-15 Int. at Record end ||>Timer A Int. at Playback end |>Timer A Int. at Record end 0x8902 Inquire value of Falcon030 registers 0xff8902, 0xff8904 and 0xff8906 ret = Frame Base Address 0x890e Inquire value of Falcon030 registers 0xff890e, 0xff8910 and 0xff8912 ret = Frame End Address 0x8920 Inquire value of Falcon030 registers 0xff8920 and 0xff8921 %00xx 00xx xx00 00xx || || || || || || || ||>00 = 6258 Hz || || || ||>01 = 12517 Hz || || || ||>10 = 25033 Hz || || || ||>11 = 50066 Hz || || ||>00 = 8-bit stereo || || ||>01 = 16-bit stereo || || ||>10 = 8-bit mono || || ||>11 = 16-bit mono || ||>Play tracks ||>Monitor track | ||||||||||||
Return value: | If no error occurs, the return will have the value 0. Otherwise
the return represents a LONG bit-vector array showing the current
error status of the sound system, which can be decoded as follows:
| ||||||||||||
Availability: | The function is only available on computers of the Falcon
series, or with extended XBIOS routines (_SND).
| ||||||||||||
Group: | Sound routines
| ||||||||||||
See also: | Binding buffoper buffptr devconnect dsptristate gpio
locksnd setbuffer setinterrupt setmontracks setmode
settracks soundcmd unlocksnd
|
C: | #include <tos.h>
int32_t sndstatus( int16_t reset ); |
Assembler: |
move.w reset,-(sp) ; Offset 2 move.w #140,-(sp) ; Offset 0 trap #14 ; Call XBIOS addq.l #4,sp ; Correct stack |
Name: | »soundcmd« - Set/get the parameters of the A/D and D/A
converter
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Opcode: | 130
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Syntax: | int32_t soundcmd( int16_t mode, int16_t data );
int32_t NSoundcmd( int16_t mode, int16_t data, int32_t data2); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Description: | The XBIOS routine soundcmd sets or obtains various parameters
of the A/D and D/A converter. The parameter mode determines
the command and data the setting to be performed.
Additional mode commands when bit 5 in the '_SND' cookie is set:
If the parameter data is passed the value -1, then the setting remains unchanged. NSoundcmd is an extended version of soundcmd. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Return value: | The function returns the current setting.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Availability: | The function is only available on computers of the Falcon
series, or with extended XBIOS routines (_SND).
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Group: | Sound routines
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
See also: | Binding buffoper buffptr devconnect dsptristate gpio
setbuffer setinterrupt setmontracks setmode settracks
sndstatus unlocksnd locksnd
|
C: | #include <tos.h>
int32_t soundcmd( int16_t mode, int16_t data ); int32_t NSoundcmd( int16_t mode, int16_t data, int32_t data2); |
Assembler: |
move.w data,-(sp) ; Offset 4 move.w mode,-(sp) ; Offset 2 move.w #130,-(sp) ; Offset 0 trap #14 ; Call XBIOS addq.l #6,sp ; Correct stack |
Name: | »StarTrack« - XBIOS extension of the StarTrack card
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Opcode: | 500
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Syntax: | See the individual subfunctions.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Description: | New XBIOS calls for the StarTrack sound card.
All functions go via the XBIOS call 500 (xbs=500) and then split into the various subfunctions.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Return value: | See the individual subfunctions.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Availability: | The function is only available on computers with the
corresponding cards and their drivers.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Group: | Sound routines
|
Name: | »installed« - Cookie XBIOS
|
Opcode: | 500, 1
|
Syntax: | int32_t xbios ( 500, 1 );
|
Description: |
|
Return value: | If the value is 0x71273800, then the XBIOS driver is
installed.
|
Availability: | This function is only available when the driver of the
StarTrack sound card has been launched.
|
Group: | Sound routines
|
See also: | Binding
|
C: | int32_t xbios ( 500, 1 );
|
Assembler: |
move.w #1,-(sp) ; Offset 2 move.w #500,-(sp) ; Offset 0 trap #14 ; Call XBIOS addq.l #4,sp ; Correct stack |
Name: | »cardslot« -
|
Opcode: | 500, 10
|
Syntax: | int32_t xbios ( 500, 10 );
|
Description: |
|
Return value: | Number of installed sound cards (1-8).
|
Availability: | This function is only available when the driver of the StarTrack
sound card has been launched.
|
Group: | Sound routines
|
See also: | Binding
|
C: | int32_t xbios ( 500, 10 );
|
Assembler: |
move.w #10,-(sp) ; Offset 2 move.w #500,-(sp) ; Offset 0 trap #14 ; Call XBIOS addq.l #4,sp ; Correct stack |
Name: | »cardsel« - Select sound card
|
Opcode: | 500, 11
|
Syntax: | int32_t xbios ( 500, 11, int16_t csel );
|
Description: | csel selected sound card (1-8).
Important: All further function calls refer to the sound card selected here! |
Return value: | 0 - No error
|
Availability: | This function is only available when the driver of the StarTrack
sound card has been launched.
|
Group: | Sound routines
|
See also: | Binding
|
C: | int32_t xbios ( 500, 11, int16_t csel );
|
Assembler: |
move.w csel,-(sp) ; Offset 4 move.w #11,-(sp) ; Offset 2 move.w #500,-(sp) ; Offset 0 trap #14 ; Call XBIOS addq.l #6,sp ; Correct stack |
Name: | »cardmagic« - Read sound card magic
| ||||||||||||
Opcode: | 500, 12
| ||||||||||||
Syntax: | int32_t xbios ( 500, 12);
| ||||||||||||
Description: |
| ||||||||||||
Return value: |
| ||||||||||||
Availability: | This function is only available when the driver of the StarTrack
sound card has been launched.
| ||||||||||||
Group: | Sound routines
| ||||||||||||
See also: | Binding
|
C: | int32_t xbios ( 500, 12);
|
Assembler: |
move.w #12,-(sp) ; Offset 2 move.w #500,-(sp) ; Offset 0 trap #14 ; Call XBIOS addq.l #4,sp ; Correct stack |
Name: | »cardadr« - Sound card addresses
| ||||||||
Opcode: | 500, 13
| ||||||||
Syntax: | int32_t xbios ( 500, 13 );
| ||||||||
Description: |
| ||||||||
Return value: | Points to the start address showing where the various sound
card addresses are stored (see also register description):
| ||||||||
Availability: | This function is only available when the driver of the StarTrack
sound card has been launched.
| ||||||||
Group: | Sound routines
| ||||||||
See also: | Binding
|
C: | int32_t xbios ( 500, 13 );
|
Assembler: |
move.w #13,-(sp) ; Offset 2 move.w #500,-(sp) ; Offset 0 trap #14 ; Call XBIOS addq.l #4,sp ; Correct stack |
Name: | »digana« - Digital/Analog input
|
Opcode: | 500, 20
|
Syntax: | int32_t xbios ( 500, 20, int16_t input );
|
Description: | input: Select the input
0 - Digital input 1 - Analog input |
Return value: | 0 - No error
|
Availability: | This function is only available when the driver of the StarTrack
sound card has been launched.
|
Group: | Sound routines
|
See also: | Binding
|
C: | int32_t xbios ( 500, 20, int16_t input );
|
Assembler: |
move.w input,-(sp) ; Offset 4 move.w #20,-(sp) ; Offset 2 move.w #500,-(sp) ; Offset 0 trap #14 ; Call XBIOS addq.l #6,sp ; Correct stack |
Name: | »digcom« - Digitalquelle
|
Opcode: | 500, 21
|
Syntax: | int32_t xbios ( 500, 21, int16_t dq );
|
Description: | dq: Select the digital source
0 - opto (TOSLINK) 1 - Cinch (phono socket) 2 - XLR (AES/EBU) |
Return value: | 0 - No error
|
Availability: | This function is only available when the driver of the StarTrack
sound card has been launched.
|
Group: | Sound routines
|
See also: | Binding
|
C: | int32_t xbios ( 500, 21, int16_t dq );
|
Assembler: |
move.w dq,-(sp) ; Offset 4 move.w #21,-(sp) ; Offset 2 move.w #500,-(sp) ; Offset 0 trap #14 ; Call XBIOS addq.l #6,sp ; Correct stack |
Name: | »dspmode« - Dsp routing No/Input/Output
|
Opcode: | 500, 22
|
Syntax: | int32_t xbios ( 500, 22, int16_t dspmode );
|
Description: | dspmode: Selection of the DSP output path
0 - dspoff - DSP output not in signal path 1 - dsp_to_rec - DSP output in record signal path 2 - dsp_to_play - DSP output in playback signal path |
Return value: | 0 - No error
|
Availability: | This function is only available when the driver of the StarTrack
sound card has been launched.
|
Group: | Sound routines
|
See also: | Binding
|
C: | int32_t xbios ( 500, 22, int16_t dspmode );
|
Assembler: |
move.w playstat,-(sp) ; Offset 4 move.w #22,-(sp) ; Offset 2 move.w #500,-(sp) ; Offset 0 trap #14 ; Call XBIOS addq.l #6,sp ; Correct stack |
Name: | »sclock« - Sample rate
|
Opcode: | 500, 23
|
Syntax: | int32_t xbios ( 500, 23, int16_t srate );
|
Description: | srate: Selection of the DSP output clock
0 - digital_pll - Use clock input at digital input 1 - 32kHz 2 - 44.1kHz 3 - 48kHz 4 - 8kHz 5 - 11kHz 6 - 16kHz 7 - 16.5kHz 8 - 22kHz 9 - 22kHz 10 - 24kHz 11 - 33kHz 12 - Ext/768 13 - Ext/512 14 - Ext/384 15 - Ext/256 |
Return value: | 0 - No error
|
Availability: | This function is only available when the driver of the StarTrack
sound card has been launched.
|
Group: | Sound routines
|
See also: | Binding
|
C: | int32_t xbios ( 500, 23, int16_t srate );
|
Assembler: |
move.w srate,-(sp) ; Offset 4 move.w #23,-(sp) ; Offset 2 move.w #500,-(sp) ; Offset 0 trap #14 ; Call XBIOS addq.l #6,sp ; Correct stack |
Name: | »highsrate« - High sampling
|
Opcode: | 500, 24
|
Syntax: | int32_t xbios ( 500, 24, int16_t hs );
|
Description: | hs: High sampling with 96kHz
0 - No high sampling 1 - Select high sampling |
Return value: | 0 - No error
|
Availability: | This function is only available when the driver of the StarTrack
sound card has been launched.
|
Group: | Sound routines
|
See also: | Binding
|
C: | int32_t xbios ( 500, 24, int16_t hs );
|
Assembler: |
move.w hs,-(sp) ; Offset 4 move.w #24,-(sp) ; Offset 2 move.w #500,-(sp) ; Offset 0 trap #14 ; Call XBIOS addq.l #6,sp ; Correct stack |
Name: | »bypass« - Bypass/sample playback
|
Opcode: | 500, 25
|
Syntax: | int32_t xbios ( 500, 25, int16_t bypass );
|
Description: | bypass: Output source
0 - Bypass - Outputs are connected to the input 1 - Play - Outputs obtain their data from the playback hardware |
Return value: | 0 - No error
|
Availability: | This function is only available when the driver of the StarTrack
sound card has been launched.
|
Group: | Sound routines
|
See also: | Binding
|
C: | int32_t xbios ( 500, 25, int16_t bypass );
|
Assembler: |
move.w bypass,-(sp) ; Offset 4 move.w #25,-(sp) ; Offset 2 move.w #500,-(sp) ; Offset 0 trap #14 ; Call XBIOS addq.l #6,sp ; Correct stack |
Name: | »recmode« - Recording mode
|
Opcode: | 500, 26
|
Syntax: | int32_t xbios ( 500, 26, int16_t mrec );
|
Description: | mrec: Recording type
0 - Normal - 2-channel recording in 64-bit mode 1 - Four - 4-channel recording in 64-bit mode via A/D and digital-in 2 - Eight - 8-channel recording in 128-bit mode |
Return value: | 0 - No error
|
Availability: | This function is only available when the driver of the StarTrack
sound card has been launched.
|
Group: | Sound routines
|
See also: | Binding
|
C: | int32_t xbios ( 500, 26, int16_t mrec );
|
Assembler: |
move.w mrec,-(sp) ; Offset 4 move.w #26,-(sp) ; Offset 2 move.w #500,-(sp) ; Offset 0 trap #14 ; Call XBIOS addq.l #6,sp ; Correct stack |
Name: | »playmode« - Playback mode
|
Opcode: | 500, 27
|
Syntax: | int32_t xbios ( 500, 27, int16_t mplay );
|
Description: | mplay: Playback type
0 - Normal - 2-channel playback in 64-bit mode 1 - Four - 4-channel playback in 64-bit mode via D/A and digital-out 2 - Eight - 8-channel playback in 128-bit mode 3 - Sixteen - 16-channel playback in 128-bit mode |
Return value: | 0 - No error
|
Availability: | This function is only available when the driver of the StarTrack
sound card has been launched.
|
Group: | Sound routines
|
See also: | Binding
|
C: | int32_t xbios ( 500, 27, int16_t mplay );
|
Assembler: |
move.w mplay,-(sp) ; Offset 4 move.w #27,-(sp) ; Offset 2 move.w #500,-(sp) ; Offset 0 trap #14 ; Call XBIOS addq.l #6,sp ; Correct stack |
Name: | »mode24« - Matrix data size (16/24-bit)
|
Opcode: | 500, 28
|
Syntax: | int32_t xbios ( 500, 28, int16_t mode24 );
|
Description: | mode24: Matrix data type
0 - Normal - 16-bit data transfer 1 - Extended - 24-bit data transfer |
Return value: | 0 - No error
|
Availability: | This function is only available when the driver of the StarTrack
sound card has been launched.
|
Group: | Sound routines
|
See also: | Binding
|
C: | int32_t xbios ( 500, 28, int16_t mode24 );
|
Assembler: |
move.w mode24,-(sp) ; Offset 4 move.w #28,-(sp) ; Offset 2 move.w #500,-(sp) ; Offset 0 trap #14 ; Call XBIOS addq.l #8,sp ; Correct stack |
Name: | »digmode« - Digital output consumer/professional
|
Opcode: | 500, 30
|
Syntax: | int32_t xbios ( 500, 30, int16_t digmode );
|
Description: | digmode: Select the SP/DIF output format
0 - consumer - Output in consumer format (HIFI-devices) 1 - professional - Output in professional format (studio equipment) |
Return value: | 0 - No error
|
Availability: | This function is only available when the driver of the StarTrack
sound card has been launched.
|
Group: | Sound routines
|
See also: | Binding
|
C: | int32_t xbios ( 500, 30, int16_t digmode );
|
Assembler: |
move.w digmode,-(sp) ; Offset 4 move.w #30,-(sp) ; Offset 2 move.w #500,-(sp) ; Offset 0 trap #14 ; Call XBIOS addq.l #6,sp ; Correct stack |
Name: | »scmsmode« - Clear SCMS
|
Opcode: | 500, 31
|
Syntax: | int32_t xbios ( 500, 31, int16_t scmsmode );
|
Description: | scmsmode: Copy protection
0 - Bypass - Route digital input data unchanged to the output 1 - Clear - Completely remove SCMS copy protection |
Return value: | 0 - No error
|
Availability: | This function is only available when the driver of the StarTrack
sound card has been launched.
|
Group: | Sound routines
|
See also: | Binding
|
C: | int32_t xbios ( 500, 31, int16_t scmsmode );
|
Assembler: |
move.w scmsmode,-(sp) ; Offset 4 move.w #31,-(sp) ; Offset 2 move.w #500,-(sp) ; Offset 0 trap #14 ; Call XBIOS addq.l #6,sp ; Correct stack |
Name: | »mycopybit« - Own SCMS copy protection No/One/All
|
Opcode: | 500, 32
|
Syntax: | int32_t xbios ( 500, 32, int16_t myscms );
|
Description: | myscms: Copy protection for digit output in playback
0 - No - No copying possible 1 - One - One-time copying possible 2 - All - No copy protection, free copying possible |
Return value: | 0 - No error
|
Availability: | This function is only available when the driver of the StarTrack
sound card has been launched.
|
Group: | Sound routines
|
See also: | Binding
|
C: | int32_t xbios ( 500, 32, int16_t myscms );
|
Assembler: |
move.w myscms,-(sp) ; Offset 4 move.w #32,-(sp) ; Offset 2 move.w #500,-(sp) ; Offset 0 trap #14 ; Call XBIOS addq.l #6,sp ; Correct stack |
Name: | »emphasis« - De-emphasis
|
Opcode: | 500, 33
|
Syntax: | int32_t xbios ( 500, 33, int16_t emph );
|
Description: | emph: De-emphasis (top cut), works on digital output
(in playback mode) and analog output
0 - Normal - No top cut 1 - De-emphasis - Top cut |
Return value: | 0 - No error
|
Availability: | This function is only available when the driver of the StarTrack
sound card has been launched.
|
Group: | Sound routines
|
See also: | Binding
|
C: | int32_t xbios ( 500, 33, int16_t emph );
|
Assembler: |
move.w emph,-(sp) ; Offset 4 move.w #33,-(sp) ; Offset 2 move.w #500,-(sp) ; Offset 0 trap #14 ; Call XBIOS addq.l #6,sp ; Correct stack |
Name: | »digsrate« - Sample rate recognition from digital input
|
Opcode: | 500, 40
|
Syntax: | int32_t xbios ( 500, 40 );
|
Description: |
|
Return value: | 0 -> Invalid
1 -> 32kHz 2 -> 44.1kHz 3 -> 48kHz |
Availability: | This function is only available when the driver of the StarTrack
sound card has been launched.
|
Group: | Sound routines
|
See also: | Binding
|
C: | int32_t xbios ( 500, 40 );
|
Assembler: |
move.w #40,-(sp) ; Offset 2 move.w #500,-(sp) ; Offset 0 trap #14 ; Call XBIOS addq.l #4,sp ; Correct stack |
Name: | »digcode« - Digital input record-type code
| ||||||||
Opcode: | 500, 41
| ||||||||
Syntax: | int32_t xbios ( 500, 41 );
| ||||||||
Description: |
| ||||||||
Return value: |
| ||||||||
Availability: | This function is only available when the driver of the StarTrack
sound card has been launched.
| ||||||||
Group: | Sound routines
| ||||||||
See also: | Binding
|
C: | int32_t xbios ( 500, 41 );
|
Assembler: |
move.w #41,-(sp) ; Offset 2 move.w #500,-(sp) ; Offset 0 trap #14 ; Call XBIOS addq.l #4,sp ; Correct stack |
Name: | »errorcode« - Digital input error code
|
Opcode: | 500, 42
|
Syntax: | int32_t xbios ( 500, 42 );
|
Description: |
|
Return value: | 0 -> No error
1 -> Validity bit high 2 -> Confidence flag 3 -> Slipped sample 4 -> CRC-error 5 -> Parity error 6 -> Biphase coding error 7 -> No lock |
Availability: | This function is only available when the driver of the StarTrack
sound card has been launched.
|
Group: | Sound routines
|
See also: | Binding
|
C: | int32_t xbios ( 500, 42 );
|
Assembler: |
move.w #42,-(sp) ; Offset 2 move.w #500,-(sp) ; Offset 0 trap #14 ; Call XBIOS addq.l #4,sp ; Correct stack |
Name: | »cblmode« - Reset matrix to CBL mode
|
Opcode: | 500, 43
|
Syntax: | int32_t xbios ( 500, 43, int16_t cblmode );
|
Description: | cblmode: Channel status-block read mode
0 - normal - No cbl mode, matrix transports sound data 1 - cblread - Cbl mode, matrix transports status bits from digital input |
Return value: | 0 - No error
|
Availability: | This function is only available when the driver of the StarTrack
sound card has been launched.
|
Group: | Sound routines
|
See also: | Binding
|
C: | int32_t xbios ( 500, 43, int16_t cblmode );
|
Assembler: |
move.w cblmode,-(sp) ; Offset 4 move.w #43,-(sp) ; Offset 2 move.w #500,-(sp) ; Offset 0 trap #14 ; Call XBIOS addq.l #6,sp ; Correct stack |
Name: | »cblread« - Read out the channel status bytes
|
Opcode: | 500, 44
|
Syntax: | int32_t xbios ( 500, 44 );
|
Description: |
|
Return value: | Points to the start address where the 24 status bytes are
stored:
int8_t cbl0 : Channel status byte 0 : Bit 7 -> Channel status bit 0 int8_t cbl0 : Channel status byte 0 : Bit 6 -> Channel status bit 1 int8_t cbl0 : Channel status byte 0 : Bit 5 -> Channel status bit 2 int8_t cbl0 : Channel status byte 0 : Bit 4 -> Channel status bit 3 int8_t cbl0 : Channel status byte 0 : Bit 3 -> Channel status bit 4 int8_t cbl0 : Channel status byte 0 : Bit 2 -> Channel status bit 5 int8_t cbl0 : Channel status byte 0 : Bit 1 -> Channel status bit 6 int8_t cbl0 : Channel status byte 0 : Bit 0 -> Channel status bit 7 ... int8_t cbl23 : Channel status byte 23 |
Availability: | This function is only available when the driver of the StarTrack
sound card has been launched.
|
Group: | Sound routines
|
See also: | Binding
|
C: | int32_t xbios ( 500, 44 );
|
Assembler: |
move.w #44,-(sp) ; Offset 2 move.w #500,-(sp) ; Offset 0 trap #14 ; Call XBIOS addq.l #4,sp ; Correct stack |
Name: | »recstat« - Recfifo status
| ||||||
Opcode: | 500, 45
| ||||||
Syntax: | int32_t xbios ( 500, 45 );
| ||||||
Description: |
| ||||||
Return value: |
| ||||||
Availability: | This function is only available when the driver of the StarTrack
sound card has been launched.
| ||||||
Group: | Sound routines
| ||||||
See also: | Binding
|
C: | int32_t xbios ( 500, 45 );
|
Assembler: |
move.w #45,-(sp) ; Offset 2 move.w #500,-(sp) ; Offset 0 trap #14 ; Call XBIOS addq.l #4,sp ; Correct stack |
Name: | »playstat« - Playfifo status
| ||||||
Opcode: | 500, 46
| ||||||
Syntax: | int32_t xbios ( 500, 46 );
| ||||||
Description: |
| ||||||
Return value: |
| ||||||
Availability: | This function is only available when the driver of the StarTrack
sound card has been launched.
| ||||||
Group: | Sound routines
| ||||||
See also: | Binding
|
C: | int32_t xbios ( 500, 46 );
|
Assembler: |
move.w #46,-(sp) ; Offset 2 move.w #500,-(sp) ; Offset 0 trap #14 ; Call XBIOS addq.l #4,sp ; Correct stack |
Name: | »volad« - Volume controller for input
| ||||||||
Opcode: | 500, 50
| ||||||||
Syntax: | int32_t xbios ( 500, 50, int16_t lvol, int16_t rvol );
| ||||||||
Description: | lvol: Volume of left channel in 0.5db steps (0-255)
rvol: Volume of right channel in 0.5db steps (0-255) The volume controller can operate in the region of -96dB to +32dB:
| ||||||||
Return value: | 0 - No error
| ||||||||
Availability: | This function is only available when the driver of the StarTrack
sound card has been launched.
| ||||||||
Group: | Sound routines
| ||||||||
See also: | Binding
|
C: | int32_t xbios ( 500, 50, int16_t lvol, int16_t rvol );
|
Assembler: |
move.w rvol,-(sp) ; Offset 6 move.w lvol,-(sp) ; Offset 4 move.w #50,-(sp) ; Offset 2 move.w #500,-(sp) ; Offset 0 trap #14 ; Call XBIOS addq.l #8,sp ; Correct stack |
Name: | »volda« - Volume controller for output
| ||||||||
Opcode: | 500, 51
| ||||||||
Syntax: | int32_t xbios ( 500, 51, int16_t lvol, int16_t rvol );
| ||||||||
Description: | lvol: Volume of left channel in 0.5db steps (0-255)
rvol: Volume of right channel in 0.5db steps (0-255) The volume controller can operate in the region of -96dB to +31.5dB:
| ||||||||
Return value: | 0 - No error
| ||||||||
Availability: | This function is only available when the driver of the StarTrack
sound card has been launched.
| ||||||||
Group: | Sound routines
| ||||||||
See also: | Binding
|
C: | int32_t xbios ( 500, 51, int16_t lvol, int16_t rvol );
|
Assembler: |
move.w rvol,-(sp) ; Offset 6 move.w lvol,-(sp) ; Offset 4 move.w #51,-(sp) ; Offset 2 move.w #500,-(sp) ; Offset 0 trap #14 ; Call XBIOS addq.l #8,sp ; Correct stack |
Name: | »readsmp« - Read a sample
|
Opcode: | 500, 52
|
Syntax: | int32_t xbios ( 500, 52 );
|
Description: |
|
Return value: | Address return value, -1 = Error
int16_t 0 left int16_t 2 right |
Availability: | This function is only available when the driver of the StarTrack
sound card has been launched.
|
Group: | Sound routines
|
See also: | Binding
|
C: | int32_t xbios ( 500, 52 );
|
Assembler: |
move.w #52,-(sp) ; Offset 2 move.w #500,-(sp) ; Offset 0 trap #14 ; Call XBIOS addq.l #4,sp ; Correct stack |
Name: | »writesmp« - Write a sample
|
Opcode: | 500, 53
|
Syntax: | int32_t xbios ( 500, 53, int16_t left, int16_t right );
|
Description: | left : Sample value left
right: Sample value right |
Return value: | 0 - No error
|
Availability: | This function is only available when the driver of the StarTrack
sound card has been launched.
|
Group: | Sound routines
|
See Also: | Binding
|
C: | int32_t xbios ( 500, 53, int16_t left, int16_t right );
|
Assembler: |
move.w right,-(sp) ; Offset 6 move.w left,-(sp) ; Offset 4 move.w #53,-(sp) ; Offset 2 move.w #500,-(sp) ; Offset 0 trap #14 ; Call XBIOS addq.l #8,sp ; Correct stack |
Name: | »intact« - Interrupt release for FIFO
| ||||
Opcode: | 500, 54
| ||||
Syntax: | int32_t xbios ( 500, 54, int16_t int );
| ||||
Description: | int:
| ||||
Return value: | 0 - No error
| ||||
Availability: | This function is only available when the driver of the StarTrack
sound card has been launched.
| ||||
Group: | Sound routines
| ||||
See also: | Binding
|
C: | int32_t xbios ( 500, 54, int16_t int );
|
Assembler: |
move.w int,-(sp) ; Offset 4 move.w #54,-(sp) ; Offset 2 move.w #500,-(sp) ; Offset 0 trap #14 ; Call XBIOS addq.l #6,sp ; Correct stack |
Name: | »dspintact« - Interrupt release for DSP
| ||||
Opcode: | 500, 55
| ||||
Syntax: | int32_t xbios ( 500, 55, int16_t dint );
| ||||
Description: | dint:
| ||||
Return value: | 0 - No error
| ||||
Availability: | This function is only available when the driver of the StarTrack
sound card has been launched.
| ||||
Group: | Sound routines
| ||||
See also: | Binding
|
C: | int32_t xbios ( 500, 55, int16_t dint );
|
Assembler: |
move.w dint,-(sp) ; Offset 4 move.w #55,-(sp) ; Offset 2 move.w #500,-(sp) ; Offset 0 trap #14 ; Call XBIOS addq.l #6,sp ; Correct stack |
Name: | »sysreset« - Clear record FIFO
|
Opcode: | 500, 60
|
Syntax: | int32_t xbios ( 500, 60 );
|
Description: | Clear record FIFO, offset equalization & kickstart for D/A,
reset for A/D, D/A, volume controller, digital SP/DIF chips
|
Return value: | 0 - No error
|
Availability: | This function is only available when the driver of the StarTrack
sound card has been launched.
|
Group: | Sound routines
|
See also: | Binding
|
C: | int32_t xbios ( 500, 60 );
|
Assembler: |
move.w #60,-(sp) ; Offset 2 move.w #500,-(sp) ; Offset 0 trap #14 ; Call XBIOS addq.l #4,sp ; Correct stack |
Name: | »dspreset« - Reset for DSP
|
Opcode: | 500, 61
|
Syntax: | int32_t xbios ( 500, 61 );
|
Description: | Resets the DSP
|
Return value: | 0 - No error
|
Availability: | This function is only available when the driver of the StarTrack
sound card has been launched.
|
Group: | Sound routines
|
See also: | Binding
|
C: | int32_t xbios ( 500, 61 );
|
Assembler: |
move.w #61,-(sp) ; Offset 2 move.w #500,-(sp) ; Offset 0 trap #14 ; Call XBIOS addq.l #4,sp ; Correct stack |
Name: | »dspmemory« - DSP memory mode
|
Opcode: | 500, 70
|
Syntax: | int32_t xbios ( 500, 70, int16_t dspmem );
|
Description: | dspmem: DSP memory mode
0 - Normal - 32Kx24-bit Falcon-compatible mode 1 - Big - 128Kx24-bit extended mode |
Return value: | 0 - No error
|
Availability: | This function is only available when the driver of the StarTrack
sound card has been launched.
|
Group: | Sound routines
|
See also: | Binding
|
C: | int32_t xbios ( 500, 70, int16_t dspmem );
|
Assembler: |
move.w dspmem,-(sp) ; Offset 4 move.w #70,-(sp) ; Offset 2 move.w #500,-(sp) ; Offset 0 trap #14 ; Call XBIOS addq.l #6,sp ; Correct stack |
Name: | »clkdivide« - DSP clock divider
|
Opcode: | 500, 71
|
Syntax: | int32_t xbios ( 500, 71, int16_t clkdiv );
|
Description: | clkdiv: DSP clock division factor
Clock of CKOUT of the DSP (at 25.175 MHz DSP clock) Input -> ICLK_output/Converter_prescaler -> Sample rate clkdiv -> Output -> Sample rate ------------------------------------------------ 0000=CKOUT/1 -> 25.175MHz/512 -> 49170 Hz 0001=CKOUT/2 -> 12.587MHz/256 -> 49170 Hz 0010=CKOUT/2 -> 12.587MHz/256 -> 49170 Hz 0011=CKOUT/3 -> 8.392MHz/256 -> 32780 Hz 0100=CKOUT/4 -> 6.294MHz/256 -> 24585 Hz 0101=CKOUT/5 -> 5.035MHz/256 -> 19668 Hz 0110=CKOUT/6 -> 4.196MHz/256 -> 16390 Hz 0111=CKOUT/7 -> 3.596MHz/256 -> 14049 Hz 1000=CKOUT/8 -> 3.147MHz/256 -> 12292 Hz 1001=CKOUT/9 -> 2.797MHz/256 -> 10927 Hz 1010=CKOUT/10 -> 2.518MHz/256 -> 9833 Hz 1011=CKOUT/11 -> 2.289MHz/256 -> 8940 Hz 1100=CKOUT/12 -> 2.098MHz/256 -> 8195 Hz 1101=CKOUT/13 -> 1.937MHz/256 -> 7565 Hz 1110=CKOUT/14 -> 1.798MHz/256 -> 7024 Hz 1111=CKOUT/15 -> 1.678MHz/256 -> 6556 Hz Clock of CKOUT of the DSP (at 66.00 MHz DSP clock) Input -> ICLK_output/Converter_prescaler -> Sample rate clkdiv -> Output -> Sample rate ---------------------------------------------------- 0000=CKOUT/1 -> 66.000MHz/768 -> 85938 Hz 0001=CKOUT/2 -> 33.000MHz/512 -> 64453 Hz 0010=CKOUT/2 -> 33.000MHz/512 -> 64453 Hz 0011=CKOUT/3 -> 22.000MHz/512 -> 42969 Hz 0100=CKOUT/4 -> 16.500MHz/512 -> 32227 Hz 0101=CKOUT/5 -> 13.200MHz/512 -> 25781 Hz 0110=CKOUT/6 -> 11.000MHz/512 -> 21484 Hz 0111=CKOUT/7 -> 9.428MHz/512 -> 18415 Hz 1000=CKOUT/8 -> 8.250MHz/512 -> 16113 Hz 1001=CKOUT/9 -> 7.333MHz/512 -> 14323 Hz 1010=CKOUT/10 -> 6.600MHz/512 -> 12891 Hz 1011=CKOUT/11 -> 6.000MHz/512 -> 11719 Hz 1100=CKOUT/12 -> 5.500MHz/512 -> 10742 Hz 1101=CKOUT/13 -> 5.077MHz/512 -> 9916 Hz 1110=CKOUT/14 -> 4.714MHz/512 -> 9208 Hz 1111=CKOUT/15 -> 4.400MHz/512 -> 8594 Hz Further clock rates are possible (Converter_prescaler /256, /384, /512 and /768 are usable, so in total 64 new clock rates with CLKDIV!) |
Return value: | 0 - No error
|
Availability: | This function is only available when the driver of the StarTrack
sound card has been launched.
|
Group: | Sound routines
|
See also: | Binding
|
C: | int32_t xbios ( 500, 71, int16_t clkdiv );
|
Assembler: |
move.w clkdiv,-(sp) ; Offset 4 move.w #71,-(sp) ; Offset 2 move.w #500,-(sp) ; Offset 0 trap #14 ; Call XBIOS addq.l #6,sp ; Correct stack |
Name: | »pathset« - DSP connections
|
Opcode: | 500, 72
|
Syntax: | int32_t xbios ( 500, 72, int16_t path );
|
Description: | path: DSP connections
Bit 0 - Connection of matrix to SC0 of the DSP (0 = disconnected, 1 = connected) Bit 1 - Connection of matrix to SC1 of the DSP (0 = disconnected, 1 = connected) Bit 2 - Connection of matrix to SC2 of the DSP (0 = disconnected, 1 = connected) Bit 3 - Connection of matrix to SRD of the DSP (0 = disconnected, 1 = connected) |
Return value: | 0 - No error
|
Availability: | This function is only available when the driver of the StarTrack
sound card has been launched.
|
Group: | Sound routines
|
See also: | Binding
|
C: | int32_t xbios ( 500, 72, int16_t path );
|
Assembler: |
move.w path,-(sp) ; Offset 4 move.w #72,-(sp) ; Offset 2 move.w #500,-(sp) ; Offset 0 trap #14 ; Call XBIOS addq.l #6,sp ; Correct stack |
Name: | »dsp_hostcommand« - Start DSP host command
|
Opcode: | 500, 73
|
Syntax: | int32_t xbios ( 500, 73, int16_t command );
|
Description: | command: DSP command number
0 - DSP host command (DSP address $0024, default) ... 11 - DSP host command (DSP address $003A) 14 - DSP host command (DSP address $0040) ... 45 - DSP host command (DSP address $007E) |
Return value: | 0 - No error
|
Availability: | This function is only available when the driver of the StarTrack
sound card has been launched.
|
Group: | Sound routines
|
See also: | Binding
|
C: | int32_t xbios ( 500, 73, int16_t command );
|
Assembler: |
move.w command,-(sp) ; Offset 4 move.w #73,-(sp) ; Offset 2 move.w #500,-(sp) ; Offset 0 trap #14 ; Call XBIOS addq.l #6,sp ; Correct stack |
Name: | »dspclear« - Read out DSP receive buffer
|
Opcode: | 500, 74
|
Syntax: | int32_t xbios ( 500, 74 );
|
Description: |
|
Return value: | 0 - No error
|
Availability: | This function is only available when the driver of the StarTrack
sound card has been launched.
|
Group: | Sound routines
|
See also: | Binding
|
C: | int32_t xbios ( 500, 74 );
|
Assembler: |
move.w #74,-(sp) ; Offset 2 move.w #500,-(sp) ; Offset 0 trap #14 ; Call XBIOS addq.l #4,sp ; Correct stack |
Name: | »mix« - Mixes 2, 4, 6 or 8 stereo channels
| ||||||||||
Opcode: | 500, 100
| ||||||||||
Syntax: | int32_t xbios ( 500, 100, int16_t channels, int32_t startadr,
int32_t len, int32_t zieladr, int32_t voltab );
| ||||||||||
Description: | Mixes 2, 4, 6 or 8 stereo channels (= 4, 8, 12 or 16 tracks) to
one stereo channel
The tracks to be mixed lie in memory as stereo tracks following each other. The volume value table contains the sound volume for the individual channels in the region 0-200: 0 = Mute 50 = Half volume 100 = Original volume 200 = Double volume | ||||||||||
Return value: | 0 - No error
| ||||||||||
Availability: | This function is only available when the driver of the StarTrack
sound card has been launched.
| ||||||||||
Group: | Sound routines
| ||||||||||
See also: | Binding
|
C: | int32_t xbios ( 500, 100, int16_t channels, int32_t startadr,
int32_t len, int32_t zieladr, int32_t voltab );
|
Assembler: |
move.l voltab,-(sp) ; Offset 18 move.l zieladr,-(sp) ; Offset 14 move.l len,-(sp) ; Offset 10 move.l startdar,-(sp) ; Offset 6 move.w channels,-(sp) ; Offset 4 move.w #100,-(sp) ; Offset 2 move.w #500,-(sp) ; Offset 0 trap #14 ; Call XBIOS lea 22(sp),sp ; Correct stack |
Name: | »dspmix« - Mix or interleave stereo channels
| ||||||||
Opcode: | 500, 101
| ||||||||
Syntax: | int32_t xbios ( 500, 101, int16_t channels, int32_t startadr,
int32_t len, int32_t zieladr );
| ||||||||
Description: | Mixes or interleaves stereo channels (4, 8 or 16 tracks) to
Falcon-compatible 128-bit words
The tracks to be mixed lie in memory as stereo tracks following each other. The volume value table contains the sound volume for the individual channels in the region 0-200: 0 = Mute 50 = Half volume 100 = Original volume 200 = Double volume | ||||||||
Return value: | 0 - No error
| ||||||||
Availability: | This function is only available when the driver of the StarTrack
sound card has been launched.
| ||||||||
Group: | Sound routines
| ||||||||
See also: | Binding
|
C: | int32_t xbios ( 500, 101, int16_t channels, int32_t startadr,
int32_t len, int32_t zieladr );
|
Assembler: |
move.l zieladr,-(sp) ; Offset 14 move.l len,-(sp) ; Offset 10 move.l startdar,-(sp) ; Offset 6 move.w channels,-(sp) ; Offset 4 move.w #101,-(sp) ; Offset 2 move.w #500,-(sp) ; Offset 0 trap #14 ; Call XBIOS lea 18(sp),sp ; Correct stack |
Name: | »monitor« - Record & playback bypass
|
Opcode: | 500, 110
|
Syntax: | int32_t xbios ( 500, 110 );
|
Description: |
|
Return value: | 0 - No error
|
Availability: | This function is only available when the driver of the StarTrack
sound card has been launched.
|
Group: | Sound routines
|
See also: | Binding
|
C: | int32_t xbios ( 500, 110 );
|
Assembler: |
move.w #110,-(sp) ; Offset 2 move.w #500,-(sp) ; Offset 0 trap #14 ; Call XBIOS addq.l #4,sp ; Correct stack |
Name: | »recwait« - Wait for auto-record threshold
|
Opcode: | 500, 111
|
Syntax: | int32_t xbios ( 500, 111, int16_t treshold );
|
Description: | treshold: Threshold (0-32767)
|
Return value: | 0 - No error
|
Availability: | This function is only available when the driver of the StarTrack
sound card has been launched.
|
Group: | Sound routines
|
See also: | Binding
|
C: | int32_t xbios ( 500, 111, int16_t treshold );
|
Assembler: |
move.w treshold,-(sp) ; Offset 4 move.w #111,-(sp) ; Offset 2 move.w #500,-(sp) ; Offset 0 trap #14 ; Call XBIOS addq.l #6,sp ; Correct stack |
Name: | »memrec« - Memory record without interrupt
|
Opcode: | 500, 112
|
Syntax: | int32_t xbios ( 500, 112, int32_t startadr, int32_t endadr );
|
Description: | startradr: Recording start address
endadr: Recording end address Warning: Sound disappears, faulty! |
Return value: | Last recording memory position
|
Availability: | This function is only available when the driver of the StarTrack
sound card has been launched.
|
Group: | Sound routines
|
See also: | Binding
|
C: | int32_t xbios ( 500, 112, int32_t startadr, int32_t endadr );
|
Assembler: |
move.l endadr,-(sp) ; Offset 8 move.l startadr,-(sp) ; Offset 4 move.w #112,-(sp) ; Offset 2 move.w #500,-(sp) ; Offset 0 trap #14 ; Call XBIOS lea 12(sp),sp ; Correct stack |
Name: | »memplay« - Memory playback without interrupt
| ||||||||||
Opcode: | 500, 113
| ||||||||||
Syntax: | int32_t xbios ( 500, 113, int32_t startadr, int32_t endadr,
int16_t step, int16_t mode, int16_t midi );
| ||||||||||
Description: |
Warning: MIDI not tested! | ||||||||||
Return value: | Address return values, -1 = Error
int32_t 0 Memposition int32_t 4 Loops (1 = played once, 2 = twice etc.) Each crossplay = two loops (for forwards & backwards) | ||||||||||
Availability: | This function is only available when the driver of the StarTrack
sound card has been launched.
| ||||||||||
Group: | Sound routines
| ||||||||||
See also: | Binding
|
C: | int32_t xbios ( 500, 113, int32_t startadr, int32_t endadr,
int16_t step, int16_t mode, int16_t midi );
|
Assembler: |
move.w midi,-(sp) ; Offset 16 move.w mode,-(sp) ; Offset 14 move.w step,-(sp) ; Offset 12 move.l endadr,-(sp) ; Offset 8 move.l startadr,-(sp) ; Offset 4 move.w #113,-(sp) ; Offset 2 move.w #500,-(sp) ; Offset 0 trap #14 ; Call XBIOS lea 18(sp),sp ; Correct stack |
Name: | »recplay« - Memory record & playback without interrupt
|
Opcode: | 500, 114
|
Syntax: | int32_t xbios ( 500, 114 );
|
Description: | No information available!
|
Return value: |
|
Availability: | This function is only available when the driver of the StarTrack
sound card has been launched.
|
Group: | Sound routines
|
See also: | Binding
|
Unbekannt!
C: | int32_t xbios ( 500, 114 );
|
Assembler: |
move.w #114,-(sp) ; Offset 2 move.w #500,-(sp) ; Offset 0 trap #14 ; Call XBIOS addq.l #4,sp ; Correct stack |
Name: | »hardrec« - HD record without interrupt
| ||||||||
Opcode: | 500, 115
| ||||||||
Syntax: | int32_t xbios ( 500, 115, int32_t startadr, int32_t len,
int32_t sectors, int16_t handle );
| ||||||||
Description: |
Warning: Dropout due to too small FIFO! | ||||||||
Return value: | Number of completely written sectors, -1 = Error
| ||||||||
Availability: | This function is only available when the driver of the StarTrack
sound card has been launched.
| ||||||||
Group: | Sound routines
| ||||||||
See also: | Binding
|
C: | int32_t xbios ( 500, 115, int32_t startadr, int32_t len,
int32_t sectors, int16_t handle );
|
Assembler: |
move.w handle,-(sp) ; Offset 18 move.l sectors,-(sp) ; Offset 14 move.l len,-(sp) ; Offset 10 move.l startadr,-(sp) ; Offset 6 move.w #115,-(sp) ; Offset 4 move.w #500,-(sp) ; Offset 0 trap #14 ; Call XBIOS lea 20(sp),sp ; Correct stack |
Name: | »hardplay« - HD-play ohne Interrupt
| ||||||||||||||||
Opcode: | 500, 116
| ||||||||||||||||
Syntax: | int32_t xbios ( 500, 116, int32_t startadr, int32_t len,
int32_t sectors, int32_t seek, int16_t handle, int16_t step, int16_t
mode, int16_t midi );
| ||||||||||||||||
Description: |
Warning: Dropout due to too small FIFO! No reverse playback at present! | ||||||||||||||||
Return value: | Address return values, -1 = Error
int32_t 0 Number of sectors played back int32_t 4 Loops (1 = played once, 2 = twice etc.) Each crossplay = two loops (for forwards & backwards) | ||||||||||||||||
Availability: | This function is only available when the driver of the StarTrack
sound card has been launched.
| ||||||||||||||||
Group: | Sound routines
| ||||||||||||||||
See also: | Binding
|
C: | int32_t xbios ( 500, 116, int32_t startadr, int32_t len,
int32_t sectors, int32_t seek, int16_t handle, int16_t step, int16_t
mode, int16_t midi );
|
Assembler: |
move.w midi,-(sp) ; Offset 26 move.w mode,-(sp) ; Offset 24 move.w step,-(sp) ; Offset 22 move.w handle,-(sp) ; Offset 20 move.l seek,-(sp) ; Offset 16 move.l sectors,-(sp) ; Offset 12 move.l len,-(sp) ; Offset 8 move.l startadr,-(sp) ; Offset 4 move.w #116,-(sp) ; Offset 2 move.w #500,-(sp) ; Offset 0 trap #14 ; Call XBIOS lea 28(sp),sp ; Correct stack |
Name: | »hrecplay« - HD record & playback without interrupt
|
Opcode: | 500, 117
|
Syntax: | Bindings for hrecplay
|
Description: |
|
Return value: |
|
Availability: | This function is only available when the driver of the StarTrack
sound card has been launched.
|
Group: | Sound routines
|
See also: | Binding
|
Binding unbekannt!
C: | int32_t xbios ( 500, 117 );
|
Assembler: |
move.w #117,-(sp) ; Offset 2 move.w #500,-(sp) ; Offset 0 trap #14 ; Call XBIOS addq.l #4,sp ; Correct stack |
Name: | »init_peak « - Peak value output in interrupt
|
Opcode: | 500, 120
|
Syntax: | int32_t xbios ( 500, 120 );
|
Description: |
|
Return value: | Address return values, -1 = Error
int32_t 0 Peak value int32_t 8 Break (1 = new value ready for readout. After the readout peak value and break must be cleared!) |
Availability: | This function is only available when the driver of the StarTrack
sound card has been launched.
|
Group: | Sound routines
|
See also: | Binding
|
C: | int32_t xbios ( 500, 120 );
|
Assembler: |
move.w #120,-(sp) ; Offset 2 move.w #500,-(sp) ; Offset 0 trap #14 ; Call XBIOS addq.l #4,sp ; Correct stack |
Name: | »init_imemrec« - Memory record in interrupt
| ||||||
Opcode: | 500, 121
| ||||||
Syntax: | int32_t xbios ( 500, 121, int16_t select, int32_t startadr,
int32_t endadr );
| ||||||
Description: |
| ||||||
Return value: | Address return values, -1 = Error
int32_t 0 Memposition int32_t 8 Break int32_t 12 Error int32_t 24 Counter position | ||||||
Availability: | This function is only available when the driver of the StarTrack
sound card has been launched.
| ||||||
Group: | Sound routines
| ||||||
See also: | Binding
|
C: | int32_t xbios ( 500, 121, int16_t select, int32_t startadr,
int32_t endadr );
|
Assembler: |
move.l endadr,-(sp) ; Offset 10 move.l startadr,-(sp) ; Offset 6 move.w select,-(sp) ; Offset 4 move.w #121,-(sp) ; Offset 2 move.w #500,-(sp) ; Offset 0 trap #14 ; Call XBIOS lea 14(sp),sp ; Correct stack |
Name: | »init_imemplay« - Memory playback in interrupt
| ||||||||||||||
Opcode: | 500, 122
| ||||||||||||||
Syntax: | int32_t xbios ( 500, 122, int16_t select, int32_t startadr,
int32_t endadr, int32_t counter, int16_t step, int16_t mode, int16_t
midi );
| ||||||||||||||
Description: |
| ||||||||||||||
Return value: | Address return values, -1 = Error
int32_t 0 Memposition int32_t 8 Break int32_t 12 Error int32_t 24 Counter position int32_t 28 Loops | ||||||||||||||
Availability: | This function is only available when the driver of the StarTrack
sound card has been launched.
| ||||||||||||||
Group: | Sound routines
| ||||||||||||||
See also: | Binding
|
C: | int32_t xbios ( 500, 122, int16_t select, int32_t startadr,
int32_t endadr, int32_t counter, int16_t step, int16_t mode, int16_t
midi );
|
Assembler: |
move.w midi,-(sp) ; Offset 22 move.w mode,-(sp) ; Offset 20 move.w step,-(sp) ; Offset 18 move.l counter,-(sp) ; Offset 14 move.l endadr,-(sp) ; Offset 10 move.l startadr,-(sp) ; Offset 6 move.w select,-(sp) ; Offset 4 move.w #122,-(sp) ; Offset 2 move.w #500,-(sp) ; Offset 0 trap #14 ; Call XBIOS lea 24(sp),sp ; Correct stack |
Name: | »init_implaymix« - Memory playback & record-mix in
interrupt
| ||||||||||||||
Opcode: | 500, 123
| ||||||||||||||
Syntax: | int32_t xbios ( 500, 123, int16_t select, int32_t startadr,
int32_t endadr, int32_t counter, int16_t step, int16_t mode, int16_t
midi );
| ||||||||||||||
Description: |
| ||||||||||||||
Return value: | Address return values, -1 = Error
int32_t 0 Memposition int32_t 8 Break int32_t 12 Error int32_t 24 Counter position int32_t 28 Loops | ||||||||||||||
Availability: | This function is only available when the driver of the StarTrack
sound card has been launched.
| ||||||||||||||
Group: | Sound routines
| ||||||||||||||
See also: | Binding
|
C: | int32_t xbios ( 500, 123, int16_t select, int32_t startadr,
int32_t endadr, int32_t counter, int16_t step, int16_t mode, int16_t
midi );
|
Assembler: |
move.w midi,-(sp) ; Offset 22 move.w mode,-(sp) ; Offset 20 move.w step,-(sp) ; Offset 18 move.l counter,-(sp) ; Offset 14 move.l endadr,-(sp) ; Offset 10 move.l startadr,-(sp) ; Offset 6 move.w select,-(sp) ; Offset 4 move.w #122,-(sp) ; Offset 2 move.w #500,-(sp) ; Offset 0 trap #14 ; Call XBIOS lea 24(sp),sp ; Correct stack |
Name: | »init_hrec« - HD record in interrupt
| ||||||||||
Opcode: | 500, 124
| ||||||||||
Syntax: | int32_t xbios ( 500, 124, int32_t startadr, int32_t len,
int32_t sectors, int16_t handle, int16_t fileart );
| ||||||||||
Description: |
Doesn't work! | ||||||||||
Return value: | Address return values
int32_t 0 Memposition int32_t 4 Number of recorded sectors int32_t 8 Break int32_t 12 Error | ||||||||||
Availability: | This function is only available when the driver of the StarTrack
sound card has been launched.
| ||||||||||
Group: | Sound routines
| ||||||||||
See also: | Binding
|
C: | int32_t xbios ( 500, 124, int32_t startadr, int32_t len,
int32_t sectors, int16_t handle, int16_t fileart );
|
Assembler: |
move.w fileart,-(sp) ; Offset 18 move.w handle,-(sp) ; Offset 16 move.l sectors,-(sp) ; Offset 12 move.l len,-(sp) ; Offset 8 move.l startadr,-(sp) ; Offset 4 move.w #124,-(sp) ; Offset 2 move.w #500,-(sp) ; Offset 0 trap #14 ; Call XBIOS lea 20(sp),sp ; Correct stack |
Name: | »init_hplay« - HD playback in interrupt
| ||||||||||||||||||
Opcode: | 500, 125
| ||||||||||||||||||
Syntax: | int32_t xbios ( 500, 125, int32_t startadr, int32_t len,
int32_t sectors, int32_t seek, int16_t handle, int16_t fileart,
int16_t step, int16_t mode, int16_t midi );
| ||||||||||||||||||
Description: |
Crashes! | ||||||||||||||||||
Return value: | Address return values
int32_t 0 Memposition int32_t 4 Number of sectors played back int32_t 8 Break int32_t 12 Error int32_t 28 Number of loops | ||||||||||||||||||
Availability: | This function is only available when the driver of the StarTrack
sound card has been launched.
| ||||||||||||||||||
Group: | Sound routines
| ||||||||||||||||||
See also: | Binding
|
C: | int32_t xbios ( 500, 125, int32_t startadr, int32_t len,
int32_t sectors, int32_t seek, int16_t handle, int16_t fileart,
int16_t step, int16_t mode, int16_t midi );
|
Assembler: |
move.w midi,-(sp) ; Offset 28 move.w mode,-(sp) ; Offset 26 move.w step,-(sp) ; Offset 24 move.w fileart,-(sp) ; Offset 22 move.w handle,-(sp) ; Offset 20 move.l seek,-(sp) ; Offset 16 move.l sectors,-(sp) ; Offset 12 move.l len,-(sp) ; Offset 8 move.l startadr,-(sp) ; Offset 4 move.w #125,-(sp) ; Offset 2 move.w #500,-(sp) ; Offset 0 trap #14 ; Call XBIOS lea 30(sp),sp ; Correct stack |
Name: | »init_ihplaymix« - HD playback & record-mix in interrupt
|
Opcode: | 500, 126
|
Syntax: | Bindings for init_ihplaymix
|
Description: |
|
Return value: |
|
Availability: | This function is only available when the driver of the StarTrack
sound card has been launched.
|
Group: | Sound routines
|
See also: | Binding
|
Unbekannt!
C: | int32_t xbios ( 500, 126 );
|
Assembler: |
move.w #126,-(sp) ; Offset 2 move.w #500,-(sp) ; Offset 0 trap #14 ; Call XBIOS addq.l #4,sp ; Correct stack |
Name: | »init_mrecpeak« - Memory rec & peak output in interrupt
| ||||||
Opcode: | 500, 130
| ||||||
Syntax: | int32_t xbios ( 500, 130, int16_t select, int32_t startadr,
int32_t endadr );
| ||||||
Description: |
| ||||||
Return value: | Address return values
int32_t 0 Memposition int32_t 8 Break int32_t 12 Error int32_t 16 Peak value int32_t 24 Counter position | ||||||
Availability: | This function is only available when the driver of the StarTrack
sound card has been launched.
| ||||||
Group: | Sound routines
| ||||||
See also: | Binding
|
C: | int32_t xbios ( 500, 130, int16_t select, int32_t startadr,
int32_t endadr );
|
Assembler: |
move.l enddadr,-(sp) ; Offset 10 move.l startadr,-(sp) ; Offset 6 move.w select,-(sp) ; Offset 4 move.w #130,-(sp) ; Offset 2 move.w #500,-(sp) ; Offset 0 trap #14 ; Call XBIOS lea 14(sp),sp ; Correct stack |
Name: | init_mplaypeak»« - Memory playback & peak output in
interrupt
|
Opcode: | 500, 131
|
Syntax: | int32_t xbios ( 500, 131 );
|
Description: |
|
Return value: |
|
Availability: | This function is only available when the driver of the StarTrack
sound card has been launched.
|
Group: | Sound routines
|
See also: | Binding
|
Unknown!
C: | int32_t xbios ( 500, 131 );
|
Assembler: |
move.w #131,-(sp) ; Offset 2 move.w #500,-(sp) ; Offset 0 trap #14 ; Call XBIOS addq.l #4,sp ; Correct stack |
Name: | »init_mrppeak« - Memory playback & record-mix & peak
output in interrupt
|
Opcode: | 500, 132
|
Syntax: | Bindings for init_mrppeak
|
Description: |
|
Return value: |
|
Availability: | This function is only available when the driver of the StarTrack
sound card has been launched.
|
Group: | Sound routines
|
See also: | Binding
|
Unknown!
C: | int32_t xbios ( 500, 132 );
|
Assembler: |
move.w #132,-(sp) ; Offset 2 move.w #500,-(sp) ; Offset 0 trap #14 ; Call XBIOS addq.l #4,sp ; Correct stack |
Name: | »init_hrecpeak« - HD rec & peak output in interrupt
| ||||||||||
Opcode: | 500, 133
| ||||||||||
Syntax: | int32_tG xbios ( 500, 133, int32_t startadr, int32_t len,
int32_t sectors, int16_t handle, int16_t fileart );
| ||||||||||
Description: |
Dropout due to too small FIFO! | ||||||||||
Return value: | Address return values
int32_t 0 Memposition int32_t 4 Number of recorded sectors int32_t 8 Break int32_t 12 Error int32_t 16 Peak value | ||||||||||
Availability: | This function is only available when the driver of the StarTrack
sound card has been launched.
| ||||||||||
Group: | Sound routines
| ||||||||||
See also: | Binding
|
C: | int32_tG xbios ( 500, 133, int32_t startadr, int32_t len,
int32_t sectors, int16_t handle, int16_t fileart );
|
Assembler: |
move.w fileart,-(sp) ; Offset 18 move.w handle,-(sp) ; Offset 16 move.l sectors,-(sp) ; Offset 12 move.l len,-(sp) ; Offset 8 move.l startadr,-(sp) ; Offset 4 move.w #133,-(sp) ; Offset 2 move.w #500,-(sp) ; Offset 0 trap #14 ; Call XBIOS lea 20(sp),sp ; Correct stack |
Name: | »init_hplaypeak« - HD playback & peak output in interrupt
|
Opcode: | 500, 134
|
Syntax: | Bindings for init_hplaypeak
|
Description: |
|
Return value: |
|
Availability: | This function is only available when the driver of the StarTrack
sound card has been launched.
|
Group: | Sound routines
|
See also: | Binding
|
Unknown!
C: | int32_t xbios ( 500, 134 );
|
Assembler: |
move.w #134,-(sp) ; Offset 2 move.w #500,-(sp) ; Offset 0 trap #14 ; Call XBIOS addq.l #4,sp ; Correct stack |
Name: | »init_hrppeak« - HD playback & record-mix & peak
output in interrupt
|
Opcode: | 500, 135
|
Syntax: | int32_t xbios ( 500, 135 );
|
Description: |
|
Return value: |
|
Availability: | This function is only available when the driver of the StarTrack
sound card has been launched.
|
Group: | Sound routines
|
See also: | Binding
|
Unknown!
C: | int32_t xbios ( 500, 135 );
|
Assembler: |
move.w #135,-(sp) ; Offset 2 move.w #500,-(sp) ; Offset 0 trap #14 ; Call XBIOS addq.l #4,sp ; Correct stack |
Name: | »init_xmemrec« - Memory record in half-buffer system
| ||||||||||||||
Opcode: | 500, 140
| ||||||||||||||
Syntax: | int32_t xbios ( 500, 140, int16_t select, int32_t startadr1,
int32_t startadr2, int32_t len, int32_t endcount, int16_t fileart,
int32_t peakbuf );
| ||||||||||||||
Description: |
mAt present, with select = 2 only 1 stereo channel is stored! | ||||||||||||||
Return value: | Address return values
int32_t 0 Memposition int32_t 4 Memflag int32_t 8 Break int32_t 12 Error (not for select = 1) int32_t 16 Peak value (only for select = 0) int32_t 20 Peak buffer position (only for select = 0) int32_t 24 Counter position | ||||||||||||||
Availability: | This function is only available when the driver of the StarTrack
sound card has been launched.
| ||||||||||||||
Group: | Sound routines
| ||||||||||||||
See also: | Binding
|
C: | int32_t xbios ( 500, 140, int16_t select, int32_t startadr1,
int32_t startadr2, int32_t len, int32_t endcount, int16_t fileart,
int32_t peakbuf );
|
Assembler: |
move.l peakbuf,-(sp) ; Offset 24 move.w fileart,-(sp) ; Offset 22 move.l endcount,-(sp) ; Offset 18 move.l len,-(sp) ; Offset 14 move.l startadr2,-(sp) ; Offset 10 move.l startadr1,-(sp) ; Offset 6 move.w select,-(sp) ; Offset 4 move.w #140,-(sp) ; Offset 2 move.w #500,-(sp) ; Offset 0 trap #14 ; Call XBIOS lea 28(sp),sp ; Correct stack |
Name: | »init_xmemplay« - Memory playback in half-buffer system
| ||||||||||||||||||||
Opcode: | 500, 141
| ||||||||||||||||||||
Syntax: | int32_t xbios ( 500, 141, int16_t select, int32_t startadr1,
int32_t startadr2, int32_t len, int32_t counter, int32_t endcount,
int16_t fileart, int16_t step, int16_t mode, int16_t midi );
| ||||||||||||||||||||
Description: |
| ||||||||||||||||||||
Return value: | Address return values
int32_t 0 Memposition int32_t 4 Memflag int32_t 8 Break int32_t 12 Error (not for select = 1)) int32_t 16 Peak value (only for select = 0) int32_t 24 Counter position int32_t 40 Last block | ||||||||||||||||||||
Availability: | This function is only available when the driver of the StarTrack
sound card has been launched.
| ||||||||||||||||||||
Group: | Sound routines
| ||||||||||||||||||||
See also: | Binding
|
C: | int32_t xbios ( 500, 141, int16_t select, int32_t startadr1,
int32_t startadr2, int32_t len, int32_t counter, int32_t endcount,
int16_t fileart, int16_t step, int16_t mode, int16_t midi );
|
Assembler: |
move.w midi,-(sp) ; Offset 32 move.w mode,-(sp) ; Offset 30 move.w step,-(sp) ; Offset 28 move.w fileart,-(sp) ; Offset 26 move.l endcount,-(sp) ; Offset 22 move.l counter,-(sp) ; Offset 18 move.l len,-(sp) ; Offset 14 move.l startadr2,-(sp) ; Offset 10 move.l startadr1,-(sp) ; Offset 6 move.w select,-(sp) ; Offset 4 move.w #141,-(sp) ; Offset 2 move.w #500,-(sp) ; Offset 0 trap #14 ; Call XBIOS lea 34(sp),sp ; Correct stack |
Name: | »init_xmixplay« - Memory playback & mixing with record in
half-buffer system
|
Opcode: | 500, 142
|
Syntax: | int32_t xbios ( 500, 142 );
|
Description: |
|
Return value: |
|
Availability: | This function is only available when the driver of the StarTrack
sound card has been launched.
|
Group: | Sound routines
|
See also: | Binding
|
Unknown!
C: | int32_t xbios ( 500, 142 );
|
Assembler: |
move.w #142,-(sp) ; Offset 2 move.w #500,-(sp) ; Offset 0 trap #14 ; Call XBIOS addq.l #4,sp ; Correct stack |
Name: | »init_xmemrec4« - Memory record in half-buffer system of 4
channels (analog/digital)
| ||||||||||||||||||
Opcode: | 500, 143
| ||||||||||||||||||
Syntax: | int32_t xbios ( 500, 143, int32_t startadr1, int32_t startadr2,
int32_t dstartadr1, int32_t dstartadr2, int32_t len, int32_t endcount,
int16_t fileart, int32_t peakbuf, int32_t dpeakbuf );
| ||||||||||||||||||
Description: |
| ||||||||||||||||||
Return value: | Address return values
int32_t 0 Memposition FIFO int32_t 4 Memflag FIFO int32_t 8 Break FIFO int32_t 12 Error FIFO int32_t 16 Peak value FIFO int32_t 24 Counter position FIFO int32_t 32 Memposition DSP int32_t 36 Memflag DSP int32_t 40 Break DSP int32_t 44 Error DSP int32_t 48 Peak value DSP int32_t 56 Counter position DSP | ||||||||||||||||||
Availability: | This function is only available when the driver of the StarTrack
sound card has been launched.
| ||||||||||||||||||
Group: | Sound routines
| ||||||||||||||||||
See also: | Binding
|
C: | int32_t xbios ( 500, 143, int32_t startadr1, int32_t startadr2,
int32_t dstartadr1, int32_t dstartadr2, int32_t len, int32_t endcount,
int16_t fileart, int32_t peakbuf, int32_t dpeakbuf );
|
Assembler: |
move.l dpeakpuf,-(sp) ; Offset 34 move.l peakpuf,-(sp) ; Offset 30 move.w fileart,-(sp) ; Offset 28 move.l endcount,-(sp) ; Offset 24 move.l len,-(sp) ; Offset 20 move.l dstartadr2,-(sp) ; Offset 16 move.l dstartadr1,-(sp) ; Offset 12 move.l startadr2,-(sp) ; Offset 8 move.l startadr1,-(sp) ; Offset 4 move.w #143,-(sp) ; Offset 2 move.w #500,-(sp) ; Offset 0 trap #14 ; Call XBIOS lea 38(sp),sp ; Correct stack |
Name: | »init_xmemplay4« - Memory playback in half-buffer system of 4
channels (analog/digital)
| ||||||||||||||||||||||
Opcode: | 500, 144
| ||||||||||||||||||||||
Syntax: | int32_t xbios ( 500, 144, int32_t startadr1, int32_t startadr2,
int32_t dstartadr1, int32_t dstartadr2, int32_t len, int32_t counter,
int32_t endcount, int16_t fileart, int16_t step, int16_t mode, int16_t
midi );
| ||||||||||||||||||||||
Description: |
| ||||||||||||||||||||||
Return value: | Address return values
int32_t 0 Memposition int32_t 4 Memflag int32_t 8 Break int32_t 12 Error int32_t 16 Peak value int32_t 24 Counter position int32_t 32 Memposition DSP int32_t 36 Memflag DSP int32_t 40 Break DSP int32_t 44 Error DSP int32_t 48 Peak value DSP int32_t 56 Counter position DSP | ||||||||||||||||||||||
Availability: | This function is only available when the driver of the StarTrack
sound card has been launched.
| ||||||||||||||||||||||
Group: | Sound routines
| ||||||||||||||||||||||
See also: | Binding
|
C: | int32_t xbios ( 500, 144, int32_t startadr1, int32_t startadr2,
int32_t dstartadr1, int32_t dstartadr2, int32_t len, int32_t counter,
int32_t endcount, int16_t fileart, int16_t step, int16_t mode, int16_t
midi );
|
Assembler: |
move.w midi,-(sp) ; Offset 38 move.w mode,-(sp) ; Offset 36 move.w step,-(sp) ; Offset 34 move.w fileart,-(sp) ; Offset 32 move.l endcount,-(sp) ; Offset 28 move.l counter,-(sp) ; Offset 24 move.l len,-(sp) ; Offset 20 move.l dstartadr2,-(sp) ; Offset 16 move.l dstartadr1,-(sp) ; Offset 12 move.l startadr2,-(sp) ; Offset 8 move.l startadr1,-(sp) ; Offset 4 move.w #144,-(sp) ; Offset 2 move.w #500,-(sp) ; Offset 0 trap #14 ; Call XBIOS lea 40(sp),sp ; Correct stack |
Name: | »peakshake« - Peak value handshake (= generate new value)
|
Opcode: | 500, 150
|
Syntax: | int32_t xbios ( 500, 150 );
|
Description: |
|
Return value: | 0 - No error
|
Availability: | This function is only available when the driver of the StarTrack
sound card has been launched.
|
Group: | Sound routines
|
See also: | Binding
|
C: | int32_t xbios ( 500, 150 );
|
Assembler: |
move.w #150,-(sp) ; Offset 2 move.w #500,-(sp) ; Offset 0 trap #14 ; Call XBIOS addq.l #4,sp ; Correct stack |
Name: | »read_rlow« - Read low register
|
Opcode: | 500, 200
|
Syntax: | int32_t xbios ( 500, 200 );
|
Description: |
|
Return value: | bit 0 -> SWAES
bit 1 -> SWDIGIN bit 2 -> TAKT0 bit 3 -> TAKT1 bit 4 -> EXTAKT bit 5 -> EXTEX bit 6 -> EXTTF bit 7 -> EXTTW |
Availability: | This function is only available when the driver of the StarTrack
sound card has been launched.
|
Group: | Sound routines
|
See Also: | Binding
|
C: | int32_t xbios ( 500, 200 );
|
Assembler: |
move.w #200,-(sp) ; Offset 2 move.w #500,-(sp) ; Offset 0 trap #14 ; Call XBIOS addq.l #4,sp ; Correct stack |
Name: | »read_rhi« - Read high register
|
Opcode: | 500, 201
|
Syntax: | int32_t xbios ( 500, 201 );
|
Description: |
|
Return value: | bit 0 -> SWPROT
bit 1 -> SWRES-FIFO bit 2 -> MATRIX-OUT bit 3 -> PREEMPH bit 4 -> SWSUBFR bit 5 -> GENERA bit 6 -> CATEG0 bit 7 -> CATEG1 |
Availability: | This function is only available when the driver of the StarTrack
sound card has been launched.
|
Group: | Sound routines
|
See also: | Binding
|
C: | int32_t xbios ( 500, 201 );
|
Assembler: |
move.w #201,-(sp) ; Offset 2 move.w #500,-(sp) ; Offset 0 trap #14 ; Call XBIOS addq.l #4,sp ; Correct stack |
Name: | »read_rdsp« - Read dsp register
|
Opcode: | 500, 202
|
Syntax: | int32_t xbios ( 500, 202 );
|
Description: |
|
Return value: | bit 0 -> MATI0/REC4
bit 1 -> MATI1/PLAY4 bit 2 -> VOLCS1 bit 3 -> VOLCLK bit 4 -> VOLDATAI bit 5 -> VOLCS2 bit 7 -> AESFREQ |
Availability: | This function is only available when the driver of the StarTrack
sound card has been launched.
|
Group: | Sound routines
|
See also: | Binding
|
C: | int32_t xbios ( 500, 202 );
|
Assembler: |
move.w #202,-(sp) ; Offset 2 move.w #500,-(sp) ; Offset 0 trap #14 ; Call XBIOS addq.l #4,sp ; Correct stack |
Name: | »read_raes« - Read aes register
|
Opcode: | 500, 203
|
Syntax: | int32_t xbios ( 500, 203 );
|
Description: |
|
Return value: | bit 0 -> SWPROF
bit 1 -> SWCOPY/PCH16 bit 2 -> DIGMODE:SWMAL2/DIG24 bit 3 -> PLAY128 bit 4 -> REC128 bit 7 -> SPEBU |
Availability: | This function is only available when the driver of the StarTrack
sound card has been launched.
|
Group: | Sound routines
|
See also: | Binding
|
C: | int32_t xbios ( 500, 203 );
|
Assembler: |
move.w #203,-(sp) ; Offset 2 move.w #500,-(sp) ; Offset 0 trap #14 ; Call XBIOS addq.l #4,sp ; Correct stack |
Name: | »read_rint« - Read interrupt register
|
Opcode: | 500, 204
|
Syntax: | int32_t xbios ( 500, 204 );
|
Description: |
|
Return value: | bit 0 -> PLAY-INT
bit 1 -> REC-INT |
Availability: | This function is only available when the driver of the StarTrack
sound card has been launched.
|
Group: | Sound routines
|
See also: | Binding
|
C: | int32_t xbios ( 500, 204 );
|
Assembler: |
move.w #204,-(sp) ; Offset 2 move.w #500,-(sp) ; Offset 0 trap #14 ; Call XBIOS addq.l #4,sp ; Correct stack |
Name: | »wr_rlow« - Write low register
| ||
Opcode: | 500, 210
| ||
Syntax: | int32_t xbios ( 500, 210, int16_t value );
| ||
Description: |
| ||
Return value: | 0 - No error
| ||
Availability: | This function is only available when the driver of the StarTrack
sound card has been launched.
| ||
Group: | Sound routines
| ||
See also: | Binding
|
C: | int32_t xbios ( 500, 210, int16_t value );
|
Assembler: |
move.w value,-(sp) ; Offset 4 move.w #210,-(sp) ; Offset 2 move.w #500,-(sp) ; Offset 0 trap #14 ; Call XBIOS addq.l #6,sp ; Correct stack |
Name: | »wr_rhi« - Write high register
| ||
Opcode: | 500, 211
| ||
Syntax: | int32_t xbios ( 500, 211, int16_t value );
| ||
Description: |
| ||
Return value: | 0 - No error
| ||
Availability: | This function is only available when the driver of the StarTrack
sound card has been launched.
| ||
Group: | Sound routines
| ||
See also: | Binding
|
C: | int32_t xbios ( 500, 211, int16_t value );
|
Assembler: |
move.w value,-(sp) ; Offset 4 move.w #211,-(sp) ; Offset 2 move.w #500,-(sp) ; Offset 0 trap #14 ; Call XBIOS addq.l #6,sp ; Correct stack |
Name: | »wr_rdsp« - Write dsp register
| ||
Opcode: | 500, 212
| ||
Syntax: | int32_t xbios ( 500, 212, int16_t value );
| ||
Description: |
| ||
Return value: | 0 - No error
| ||
Availability: | This function is only available when the driver of the StarTrack
sound card has been launched.
| ||
Group: | Sound routines
| ||
See also: | Binding
|
C: | int32_t xbios ( 500, 212, int16_t value );
|
Assembler: |
move.w value,-(sp) ; Offset 4 move.w #212,-(sp) ; Offset 2 move.w #500,-(sp) ; Offset 0 trap #14 ; Call XBIOS addq.l #6,sp ; Correct stack |
Name: | »wr_raes« - Write aes register
| ||
Opcode: | 500, 213
| ||
Syntax: | int32_t xbios ( 500, 213, int16_t value );
| ||
Description: |
| ||
Return value: | 0 - No error
| ||
Availability: | This function is only available when the driver of the StarTrack
sound card has been launched.
| ||
Group: | Sound routines
| ||
See also: | Binding
|
C: | int32_t xbios ( 500, 213, int16_t value );
|
Assembler: |
move.w value,-(sp) ; Offset 4 move.w #213,-(sp) ; Offset 2 move.w #500,-(sp) ; Offset 0 trap #14 ; Call XBIOS addq.l #6,sp ; Correct stack |
Name: | »wr_rint« - Write interrupt register
| ||
Opcode: | 500, 214
| ||
Syntax: | int32_t xbios ( 500, 214, int16_t value );
| ||
Description: |
| ||
Return value: | 0 - No error
| ||
Availability: | This function is only available when the driver of the StarTrack
sound card has been launched.
| ||
Group: | Sound routines
| ||
See also: | Binding
|
C: | int32_t xbios ( 500, 214, int16_t value );
|
Assembler: |
move.w value,-(sp) ; Offset 4 move.w #214,-(sp) ; Offset 2 move.w #500,-(sp) ; Offset 0 trap #14 ; Call XBIOS addq.l #4,sp ; Correct stack |
Name: | »read_dpath1« - Read DSP dpath1 register
|
Opcode: | 500, 220
|
Syntax: | int32_t xbios ( 500, 220 );
|
Description: |
|
Return value: | bit 0 -> SW0PATH
bit 1 -> SC1PATH bit 2 -> SC2PATH bit 3 -> DSPRES |
Availability: | This function is only available when the driver of the StarTrack
sound card has been launched.
|
Group: | Sound routines
|
See also: | Binding
|
C: | int32_t xbios ( 500, 220 );
|
Assembler: |
move.w #220,-(sp) ; Offset 2 move.w #500,-(sp) ; Offset 0 trap #14 ; Call XBIOS addq.l #4,sp ; Correct stack |
Name: | »read_dpath2« - Read dsp dpath2 register
|
Opcode: | 500, 221
|
Syntax: | int32_t xbios ( 500, 221 );
|
Description: |
|
Return value: | bit 0 -> SRDPATH
bit 1 -> STDPATH0 bit 2 -> STDPATH1 bit 3 -> CONVMAST |
Availability: | This function is only available when the driver of the StarTrack
sound card has been launched.
|
Group: | Sound routines
|
See also: | Binding
|
C: | int32_t xbios ( 500, 221 );
|
Assembler: |
move.w #221,-(sp) ; Offset 2 move.w #500,-(sp) ; Offset 0 trap #14 ; Call XBIOS addq.l #4,sp ; Correct stack |
Name: | »read_dport« - Read dsp dport register
|
Opcode: | 500, 222
|
Syntax: | int32_t xbios ( 500, 222 );
|
Description: |
|
Return value: | bit 0 -> GPIO0
bit 1 -> GPIO1 bit 2 -> GPIO2 bit 3 -> GPIODIR0 |
Availability: | This function is only available when the driver of the StarTrack
sound card has been launched.
|
Group: | Sound routines
|
See also: | Binding
|
C: | int32_t xbios ( 500, 222 );
|
Assembler: |
move.w #222,-(sp) ; Offset 2 move.w #500,-(sp) ; Offset 0 trap #14 ; Call XBIOS addq.l #4,sp ; Correct stack |
Name: | »read_dconv« - Read dsp dconv register
|
Opcode: | 500, 223
|
Syntax: | int32_t xbios ( 500, 223 );
|
Description: |
|
Return value: | bit 0 -> GPIODIR1
bit 1 -> GPIODIR2 bit 2 -> CMAST0 bit 3 -> CMAST1 |
Availability: | This function is only available when the driver of the StarTrack
sound card has been launched.
|
Group: | Sound routines
|
See also: | Binding
|
C: | int32_t xbios ( 500, 223 );
|
Assembler: |
move.w #223,-(sp) ; Offset 2 move.w #500,-(sp) ; Offset 0 trap #14 ; Call XBIOS addq.l #4,sp ; Correct stack |
Name: | »read_dpdat« - Read dsp dpdat register
|
Opcode: | 500, 224
|
Syntax: | int32_t xbios ( 500, 224 );
|
Description: |
|
Return value: | bit 0 -> PDAT0
bit 1 -> PDAT1 Bit 2 -> MEMART |
Availability: | This function is only available when the driver of the StarTrack
sound card has been launched.
|
Group: | Sound routines
|
See also: | Binding
|
C: | int32_t xbios ( 500, 224 );
|
Assembler: |
move.w #224,-(sp) ; Offset 2 move.w #500,-(sp) ; Offset 0 trap #14 ; Call XBIOS addq.l #4,sp ; Correct stack |
Name: | »read_dclk« - Read dsp dclk register
|
Opcode: | 500, 225
|
Syntax: | int32_t xbios ( 500, 225 );
|
Description: |
|
Return value: | bit 0-3 -> CDIV
|
Availability: | This function is only available when the driver of the StarTrack
sound card has been launched.
|
Group: | Sound routines
|
See also: | Binding
|
C: | int32_t xbios ( 500, 225 );
|
Assembler: |
move.w #225,-(sp) ; Offset 2 move.w #500,-(sp) ; Offset 0 trap #14 ; Call XBIOS addq.l #4,sp ; Correct stack |
Name: | »wr_dpath1« - Write dsp dpath1 register
| ||
Opcode: | 500, 230
| ||
Syntax: | int32_t xbios ( 500, 230, int16_t value );
| ||
Description: |
| ||
Return value: | 0 - No error
| ||
Availability: | This function is only available when the driver of the StarTrack
sound card has been launched.
| ||
Group: | Sound routines
| ||
See also: | Binding
|
C: | int32_t xbios ( 500, 230, int16_t value );
|
Assembler: |
move.w value,-(sp) ; Offset 4 move.w #230,-(sp) ; Offset 2 move.w #500,-(sp) ; Offset 0 trap #14 ; Call XBIOS addq.l #6,sp ; Correct stack |
Name: | »wr_dpath2« - Write dsp dpath2 register
| ||
Opcode: | 500, 231
| ||
Syntax: | int32_t xbios ( 500, 231, int16_t value );
| ||
Description: |
| ||
Return value: | 0 - No error
| ||
Availability: | This function is only available when the driver of the StarTrack
sound card has been launched.
| ||
Group: | Sound routines
| ||
See also: | Binding
|
C: | int32_t xbios ( 500, 231, int16_t value );
|
Assembler: |
move.w value,-(sp) ; Offset 4 move.w #231,-(sp) ; Offset 2 move.w #500,-(sp) ; Offset 0 trap #14 ; Call XBIOS addq.l #6,sp ; Correct stack |
Name: | »wr_dport« - Write dsp dport register
| ||
Opcode: | 500, 232
| ||
Syntax: | int32_t xbios ( 500, 232, int16_t value );
| ||
Description: |
| ||
Return value: | 0 - No error
| ||
Availability: | This function is only available when the driver of the StarTrack
sound card has been launched.
| ||
Group: | Sound routines
| ||
See also: | Binding
|
C: | int32_t xbios ( 500, 232, int16_t value );
|
Assembler: |
move.w value,-(sp) ; Offset 4 move.w #232,-(sp) ; Offset 2 move.w #500,-(sp) ; Offset 0 trap #14 ; Call XBIOS addq.l #6,sp ; Correct stack |
Name: | »wr_dconv« - Write dsp dconv register
| ||
Opcode: | 500, 233
| ||
Syntax: | int32_t xbios ( 500, 233, int16_t value );
| ||
Description: |
| ||
Return value: | 0 - No error
| ||
Availability: | This function is only available when the driver of the StarTrack
sound card has been launched.
| ||
Group: | Sound routines
| ||
See also: | Binding
|
C: | int32_t xbios ( 500, 233, int16_t value );
|
Assembler: |
move.w value,-(sp) ; Offset 4 move.w #233,-(sp) ; Offset 2 move.w #500,-(sp) ; Offset 0 trap #14 ; Call XBIOS addq.l #6,sp ; Correct stack |
Name: | »wr_dpdat« - Write dsp dpdat register
| ||
Opcode: | 500, 234
| ||
Syntax: | int32_t xbios ( 500, 234, int16_t value );
| ||
Description: |
| ||
Return value: | 0 - No error
| ||
Availability: | This function is only available when the driver of the StarTrack
sound card has been launched.
| ||
Group: | Sound routines
| ||
See also: | Binding
|
C: | int32_t xbios ( 500, 234, int16_t value );
|
Assembler: |
move.w value,-(sp) ; Offset 4 move.w #234,-(sp) ; Offset 2 move.w #500,-(sp) ; Offset 0 trap #14 ; Call XBIOS addq.l #6,sp ; Correct stack |
Name: | »wr_dclk« - Write dsp dclk register
|
Opcode: | 500, 235
|
Syntax: | int32_t xbios ( 500, 235, int16_t value );
|
Description: | value: bit0-3 -> CDIV
|
Return value: | 0 - No error
|
Availability: | This function is only available when the driver of the StarTrack
sound card has been launched.
|
Group: | Sound routines
|
See also: | Binding
|
C: | int32_t xbios ( 500, 235, int16_t value );
|
Assembler: |
move.w value,-(sp) ; Offset 4 move.w #235,-(sp) ; Offset 2 move.w #500,-(sp) ; Offset 0 trap #14 ; Call XBIOS addq.l #6,sp ; Correct stack |
Name: | »fastcut« - Clear memory segment in samplemem
| ||||
Opcode: | 500, 300
| ||||
Syntax: | int32_t xbios ( 500, 300, int32_t anfmem, int32_t endmem );
| ||||
Description: |
| ||||
Return value: | 0 - No error
| ||||
Availability: | This function is only available when the driver of the StarTrack
sound card has been launched.
| ||||
Group: | Sound routines
| ||||
See also: | Binding
|
C: | int32_t xbios ( 500, 300, int32_t anfmem, int32_t endmem );
|
Assembler: |
move.l endmem,-(sp) ; Offset 8 move.l anfmem,-(sp) ; Offset 4 move.w #300,-(sp) ; Offset 2 move.w #500,-(sp) ; Offset 0 trap #14 ; Call XBIOS lea 12(sp),sp ; Correct stack |
Name: | »peaksuch« - Peak value search in samplemem
| ||||
Opcode: | 500, 301
| ||||
Syntax: | int32_t xbios ( 500, 301, int32_t anfmem, int32_t endmem );
| ||||
Description: |
| ||||
Return value: | Pointer to value table
int16_t rpos; Maximum value positive halfwave right int16_t rneg; Maximum value negative halfwave right int16_t lpos; Maximum value positive halfwave left int16_t lneg; Maximum value negative halfwave left | ||||
Availability: | This function is only available when the driver of the StarTrack
sound card has been launched.
| ||||
Group: | Sound routines
| ||||
See also: | Binding
|
C: | int32_t xbios ( 500, 301, int32_t anfmem, int32_t endmem );
|
Assembler: |
move.l endmem,-(sp) ; Offset 8 move.l anfmem,-(sp) ; Offset 4 move.w #301,-(sp) ; Offset 2 move.w #500,-(sp) ; Offset 0 trap #14 ; Call XBIOS lea 12(sp),sp ; Correct stack |
Name: | »zerono« - Zero value search in samplemem
| ||||||||
Opcode: | 500, 302
| ||||||||
Syntax: | int32_t xbios ( 500, 302, int32_t anfmem, int32_t endmem,
int16_t side, int16_t znvorweg );
| ||||||||
Description: |
| ||||||||
Return value: | Address of the found position
| ||||||||
Availability: | This function is only available when the driver of the StarTrack
sound card has been launched.
| ||||||||
Group: | Sound routines
| ||||||||
See also: | Binding
|
C: | int32_t xbios ( 500, 302, int32_t anfmem, int32_t endmem,
int16_t side, int16_t znvorweg );
|
Assembler: |
move.w znvorweg,-(sp) ; Offset 14 move.w side,-(sp) ; Offset 12 move.l endmem,-(sp) ; Offset 8 move.l anfmem,-(sp) ; Offset 4 move.w #302,-(sp) ; Offset 2 move.w #500,-(sp) ; Offset 0 trap #14 ; Call XBIOS lea 16(sp),sp ; Correct stack |
Name: | »fading« - Sample fading in samplemem
| ||||||||
Opcode: | 500, 303
| ||||||||
Syntax: | int32_t xbios ( 500, 303, int32_t data, int32_t werte, int32_t
anfmem, int32_t endmem );
| ||||||||
Description: |
| ||||||||
Return value: | 0 - No error
| ||||||||
Availability: | This function is only available when the driver of the StarTrack
sound card has been launched.
| ||||||||
Group: | Sound routines
| ||||||||
See also: | Binding
|
C: | int32_t xbios ( 500, 303, int32_t data, int32_t werte, int32_t
anfmem, int32_t endmem );
|
Assembler: |
move.l endmem,-(sp) ; Offset 162 move.l anfmem,-(sp) ; Offset 12 move.l werte,-(sp) ; Offset 8 move.l data,-(sp) ; Offset 4 move.w #303,-(sp) ; Offset 2 move.w #500,-(sp) ; Offset 0 trap #14 ; Call XBIOS lea 20(sp),sp ; Correct stack |
Name: | »unlocksnd« - Unlock sound system for use by other
applications
|
Opcode: | 129
|
Syntax: | int32_t unlocksnd( void );
|
Description: | The XBIOS routine unlocksnd unlocks the sound system for use
by other applications, after it has been locked previously.
|
Return value: | The function returns the value 0 if it was successful. If the
sound system was already available, then a negative value is returned.
|
Availability: | The function is only available on computers of the Falcon
series, or with extended XBIOS routines (_SND).
|
Group: | Sound routines
|
See also: | Binding buffoper buffptr devconnect dsptristate gpio
setbuffer setinterrupt setmontracks setmode settracks
sndstatus soundcmd locksnd
|
C: | #include <tos.h>
int32_t unlocksnd( void ); |
Assembler: |
move.w #129,-(sp) ; Offset 0 trap #14 ; Call XBIOS addq.l #2,sp ; Correct stack |
Name: | »WavePlay« - Replay a sample
|
Opcode: | 165
|
Syntax: | int32_t WavePlay( int16_t flags, int32_t rate, int32_t sptr,
int32_t slen );
|
Description: | The XBIOS routine WavePlay starts the playback of a sample
using the DMA sound system on the STe, TT030, Falcon030 or Milan.
flags is a bit-vector for the description of the sample or of the function to be executed: Bit 0 set: Sample is mono Bit 1 set: Sample is 16-bit If bit 5 in '_SND' cookie is set: Bit 4 set: Sample, if 16-bit, is in Intel format Bit 5 set: Sample is unsigned Bit 6 set: Sample format is as recorded by MilanBlaster Bit 8 set: See description in Atari Compendium Vol. I, XBIOS pp. 4.110-4.112. It is not supported by the MilanBlaster XBios rate is the sample frequency in Hz sptr is the start address of the sample (with the MilanBlaster can also lie in TT-RAM) slen is the length of the sample in bytes |
Return value: | If successful the function returns the value 0, the playback
was then started and can be be halted at any time with buffoper(0).
The end of the sample has been reached when buffoper(-1) bit 0 is
cleared. In case of error, -1 is returned, while if no sound was
played (either because the user had not previously assigned a sound or
SAM was disabled) a 1 is returned.
|
Availability: | The function is available when bit 5 in the '_SND' cookie is
set or the 'SAM\0' cookie is present.
|
Group: | Sound routines
|
See also: | Binding
|
C: | int32_t WavePlay( int16_t flags, int32_t rate, int32_t sptr,
int32_t slen );
|
Assembler: |
move.l slen,-(sp) ; Offset 12 pea sptr ; Offset 8 move.l rate,-(sp) ; Offset 4 move.w flags,-(sp) ; Offset 2 move.w #165,-(sp) ; Offset 0 trap #14 ; Call XBIOS lea 16(sp),sp ; Correct stack |