SsVabTransfer

Accesses and transfers VAB waveform data

short SsVabTransfer (
        u_char *vh_addr,
        u_char *vb_addr,
        short vabid,
        short i_flag
)

Arguments

vh_addr Pointer to start of VH data
vb_addr Pointer to start of VB data
vabid VAB ID
i_flag Must be set to 1

Return Value

The VAB ID number is returned if the VAB data was successfully transferred to the SPU sound buffer.
If the function fails to complete, one of the following values is returned:

-1 VAB ID cannot be assigned or invalid VH 
-2 Invalid VB
-3 or greater Other errors

Explanation

The sound source header list (VH data) pointed to by vh_addr is accessed and the corresponding waveform data (VB data) pointed to by vb_addr is transferred to the SPU sound buffer.
The VAB identification number is specified in vabid.
When vabid is -1, SsVabTransfer() allocates and returns an available VAB ID number (0-15).

See Also

SsVabClose()