openTRI 0.1
Functions
Atrac3

Functions

triBool triAt3Init ()
 Initialise the atrac3 playback. More...
 
triBool triAt3Load (const char *filename)
 Load an atrac3 file. More...
 
triVoid triAt3Free ()
 Unload a previously loaded atrac3 file.
 
triVoid triAt3Play ()
 Start playing a loaded atrac3 file.
 
triVoid triAt3Stop ()
 Stop playing a loaded atrac3 file.
 
triVoid triAt3Pause ()
 Pause a loaded atrac3 file.
 
triVoid triAt3SetVol (triSInt volume)
 Set the volume of the atrac3 playback. More...
 
triSInt triAt3GetVol ()
 Get the volume of the atrac3 playback.
 
triVoid triAt3SetLoop (triBool loop)
 Set the loop of the atrac3 playback. More...
 
triU64 triAt3SamplesPlayed ()
 Get the total number of samples played. More...
 
triS16 * triAt3GetMixBuffer ()
 A pointer to the current mixing buffer. More...
 

Detailed Description

Function Documentation

◆ triAt3Init()

triBool triAt3Init ( )

Initialise the atrac3 playback.

Returns
true on success
Note
Requires kernel mode

◆ triAt3Load()

triBool triAt3Load ( const char *  filename)

Load an atrac3 file.

Parameters
filename- Path of the file to load.
Returns
true on success

◆ triAt3SetVol()

triVoid triAt3SetVol ( triSInt  volume)

Set the volume of the atrac3 playback.

Parameters
volume- The new volume. Accepted values 0 to 32768

◆ triAt3SetLoop()

triVoid triAt3SetLoop ( triBool  loop)

Set the loop of the atrac3 playback.

Parameters
loop- Set to 1 to loop, 0 to playback once

◆ triAt3SamplesPlayed()

triU64 triAt3SamplesPlayed ( )

Get the total number of samples played.

Returns
Number of samples

◆ triAt3GetMixBuffer()

triS16 * triAt3GetMixBuffer ( )

A pointer to the current mixing buffer.

Returns
A pointer to the current values in the mixing buffer