ScummVM API documentation
vgminstrset.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_VGMINSTRSET_H
27 #define AUDIO_SOUNDFONT_VGMINSTRSET_H
28 
29 #include "common/scummsys.h"
30 #include "common/str.h"
31 #include "common/array.h"
32 #include "audio/soundfont/vgmitem.h"
33 #include "audio/soundfont/sf2file.h"
34 
35 class VGMSampColl;
36 class VGMInstr;
37 class VGMRgn;
38 class VGMSamp;
39 class VGMRgnItem;
40 
41 // ***********
42 // VGMInstrSet
43 // ***********
44 
45 class VGMInstrSet : public VGMFile {
46 public:
47 
48  VGMInstrSet(RawFile *file, uint32 offset, uint32 length = 0,
49  Common::String name = "VGMInstrSet", VGMSampColl *theSampColl = NULL);
50  virtual ~VGMInstrSet(void);
51 
52  virtual bool Load();
53  virtual bool GetHeaderInfo();
54  virtual bool GetInstrPointers();
55  virtual bool LoadInstrs();
56 
57 public:
59  VGMSampColl *_sampColl;
60 };
61 
62 // ********
63 // VGMInstr
64 // ********
65 
66 class VGMInstr : public VGMContainerItem {
67 public:
68  VGMInstr(VGMInstrSet *parInstrSet, uint32 offset, uint32 length, uint32 bank,
69  uint32 instrNum, const Common::String &name = "Instrument");
70  virtual ~VGMInstr(void);
71 
72  virtual bool LoadInstr();
73 
74 public:
75  uint32 _bank;
76  uint32 _instrNum;
77 
78  VGMInstrSet *_parInstrSet;
80 };
81 
82 #endif // AUDIO_SOUNDFONT_VGMINSTRSET_H
Definition: vgmitem.h:65
Definition: vgmitem.h:141
Definition: str.h:59
Definition: vgminstrset.h:66
Definition: rawfile.h:35
Definition: array.h:52
Definition: vgmsamp.h:77
Definition: vgmitem.h:190
Definition: vgmsamp.h:41
Definition: vgminstrset.h:45
Definition: vgmitem.h:89