ScummVM API documentation
vab.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  * VGMTrans (c) 2002-2019
23  * Licensed under the zlib license,
24  * refer to the included VGMTrans_LICENSE.txt file
25  */
26 #ifndef AUDIO_SOUNDFONT_VAB_H
27 #define AUDIO_SOUNDFONT_VAB_H
28 
29 #include "audio/soundfont/common.h"
30 #include "common/str.h"
31 #include "audio/soundfont/vgminstrset.h"
32 #include "audio/soundfont/vgmsamp.h"
33 
34 class Vab : public VGMInstrSet {
35 public:
36  Vab(RawFile *file, uint32 offset);
37  virtual ~Vab(void);
38 
39  virtual bool GetHeaderInfo();
40  virtual bool GetInstrPointers();
41 };
42 
43 // ********
44 // VabInstr
45 // ********
46 
47 class VabInstr : public VGMInstr {
48 public:
49  VabInstr(VGMInstrSet *instrSet, uint32 offset, uint32 length, uint32 theBank,
50  uint32 theInstrNum, const Common::String &name = "Instrument");
51  virtual ~VabInstr();
52 
53  virtual bool LoadInstr();
54 
55 public:
56  uint8 _tones;
57  uint8 _masterVol;
58 };
59 
60 // ******
61 // VabRgn
62 // ******
63 
64 class VabRgn : public VGMRgn {
65 public:
66  VabRgn(VabInstr *instr, uint32 offset);
67 
68  virtual bool LoadRgn();
69 
70 public:
71  uint16 _ADSR1; // raw ps2 ADSR1 value (articulation data)
72  uint16 _ADSR2; // raw ps2 ADSR2 value (articulation data)
73 };
74 
75 #endif // AUDIO_SOUNDFONT_VAB_H
Definition: vgmitem.h:141
Definition: str.h:59
Definition: vgminstrset.h:66
Definition: rawfile.h:35
Definition: vab.h:34
Definition: vab.h:64
Definition: vgminstrset.h:45
Definition: vab.h:47