ScummVM API documentation
voyagerxsound.h
1/* ScummVM - Graphic Adventure Engine
2 *
3 * ScummVM is the legal property of its developers, whose names
4 * are too numerous to list here. Please refer to the COPYRIGHT
5 * file distributed with this source distribution.
6 *
7 * This program is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19 *
20 */
21
22#ifndef DIRECTOR_LINGO_XLIBS_VOYAGERXSOUND_H
23#define DIRECTOR_LINGO_XLIBS_VOYAGERXSOUND_H
24
25#include "director/sound.h"
26
27namespace Director {
28
30 int channelID;
31};
32
33class VoyagerXSoundXObject : public Object<VoyagerXSoundXObject> {
34public:
35 VoyagerXSoundXObject(ObjectType objType);
37
38 int open(int monoStereo, int numChan);
39 void close();
40 int status(int chan);
41 int playfile(int chan, Common::String &path, int tstart, int tend);
42 int fade(int chan, int endvol, int duration, bool autostop);
43 void stop(int chan);
44 void volume(int chan, int vol);
45 void leftrightvol(int chan, uint8 lvol, uint8 rvol);
46 void frequency(int chan, int percent);
47 void pan(int chan, int percent);
48
49 DirectorSound *_soundManager;
50
52};
53
54namespace VoyagerXSoundXObj {
55
56extern const char *xlibName;
57extern const XlibFileDesc fileNames[];
58
59void open(ObjectType type, const Common::Path &path);
60void close(ObjectType type);
61
62void m_new(int nargs);
63void m_dispose(int nargs);
64void m_init(int nargs);
65void m_open(int nargs);
66void m_close(int nargs);
67void m_bufsize(int nargs);
68void m_exists(int nargs);
69void m_status(int nargs);
70void m_path(int nargs);
71void m_duration(int nargs);
72void m_curtime(int nargs);
73void m_playfile(int nargs);
74void m_loadfile(int nargs);
75void m_unloadfile(int nargs);
76void m_playsnd(int nargs);
77void m_extplayfile(int nargs);
78void m_stop(int nargs);
79void m_volume(int nargs);
80void m_leftrightvol(int nargs);
81void m_fade(int nargs);
82void m_frequency(int nargs);
83void m_pan(int nargs);
84void m_startrecord(int nargs);
85void m_stoprecord(int nargs);
86void m_recordpath(int nargs);
87
88} // End of namespace VoyagerXSoundXObj
89
90} // End of namespace Director
91
92#endif
Definition: hashmap.h:85
Definition: path.h:52
Definition: str.h:59
Definition: sound.h:168
Definition: lingo-object.h:71
Definition: voyagerxsound.h:33
Definition: voyagerxsound.h:29
Definition: lingo-object.h:37