wavelength 1.0.0
Loading...
Searching...
No Matches
encvag.h File Reference

Go to the source code of this file.

Functions

int __stdcall EncVagInit (short mode)
 Start an encoding of 16-bit PCM audio to VAG data.
int __stdcall EncVag (short *wav, short *vag, short attribute)
 Encode one block of samples into one 16-byte VAG block.
int __stdcall EncVagFin (short *vag)
 Write the 16-byte block that ends the VAG data.

Function Documentation

◆ EncVagInit()

int __stdcall EncVagInit ( short mode)

Start an encoding of 16-bit PCM audio to VAG data.

Parameters
modeThe encoding mode.
Returns
Zero.

◆ EncVag()

int __stdcall EncVag ( short * wav,
short * vag,
short attribute )

Encode one block of samples into one 16-byte VAG block.

Parameters
wavThe samples.
vagReceives the block.
attributeThe loop attribute of the block.
Returns
Zero.

◆ EncVagFin()

int __stdcall EncVagFin ( short * vag)

Write the 16-byte block that ends the VAG data.

Parameters
vagReceives the block.
Returns
Zero.