openTRI 0.1
triAt3.h
1/*
2 * triAt3.h: Header for Atrac3 playback
3 * This file is part of the "tri Engine".
4 *
5 * Copyright (C) 2007 tri
6 * Copyright (C) 2007 InsertWittyName <tias_dp@hotmail.com>
7 *
8 * $Id: $
9 *
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
14 *
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
19 *
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
22 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23 */
24
25#ifndef __TRIAT3_H__
26#define __TRIAT3_H__
27
28#include "triTypes.h"
29
33
41triBool triAt3Init();
42
50triBool triAt3Load(const char *filename);
51
55triVoid triAt3Free();
56
60triVoid triAt3Play();
61
65triVoid triAt3Stop();
66
70triVoid triAt3Pause();
71
77triVoid triAt3SetVol(triSInt volume);
78
82triSInt triAt3GetVol();
83
89triVoid triAt3SetLoop(triBool loop);
90
97
104
106
107#endif // __TRIAT3_H__
triVoid triAt3Free()
Unload a previously loaded atrac3 file.
triVoid triAt3Stop()
Stop playing a loaded atrac3 file.
triVoid triAt3SetVol(triSInt volume)
Set the volume of the atrac3 playback.
triU64 triAt3SamplesPlayed()
Get the total number of samples played.
triBool triAt3Load(const char *filename)
Load an atrac3 file.
triVoid triAt3SetLoop(triBool loop)
Set the loop of the atrac3 playback.
triSInt triAt3GetVol()
Get the volume of the atrac3 playback.
triVoid triAt3Play()
Start playing a loaded atrac3 file.
triVoid triAt3Pause()
Pause a loaded atrac3 file.
triBool triAt3Init()
Initialise the atrac3 playback.
triS16 * triAt3GetMixBuffer()
A pointer to the current mixing buffer.