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 
27 namespace Director {
28 
30  int channelID;
31 };
32 
33 class VoyagerXSoundXObject : public Object<VoyagerXSoundXObject> {
34 public:
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 
54 namespace VoyagerXSoundXObj {
55 
56 extern const char *xlibName;
57 extern const XlibFileDesc fileNames[];
58 
59 void open(ObjectType type, const Common::Path &path);
60 void close(ObjectType type);
61 
62 void m_new(int nargs);
63 void m_dispose(int nargs);
64 void m_init(int nargs);
65 void m_open(int nargs);
66 void m_close(int nargs);
67 void m_bufsize(int nargs);
68 void m_exists(int nargs);
69 void m_status(int nargs);
70 void m_path(int nargs);
71 void m_duration(int nargs);
72 void m_curtime(int nargs);
73 void m_playfile(int nargs);
74 void m_loadfile(int nargs);
75 void m_unloadfile(int nargs);
76 void m_playsnd(int nargs);
77 void m_extplayfile(int nargs);
78 void m_stop(int nargs);
79 void m_volume(int nargs);
80 void m_leftrightvol(int nargs);
81 void m_fade(int nargs);
82 void m_frequency(int nargs);
83 void m_pan(int nargs);
84 void m_startrecord(int nargs);
85 void m_stoprecord(int nargs);
86 void m_recordpath(int nargs);
87 
88 } // End of namespace VoyagerXSoundXObj
89 
90 } // End of namespace Director
91 
92 #endif
Definition: str.h:59
Definition: path.h:52
Definition: lingo-object.h:37
Definition: voyagerxsound.h:29
Definition: archive.h:36
Definition: sound.h:164
Definition: lingo-object.h:71
Definition: hashmap.h:85
Definition: voyagerxsound.h:33