2 |
* * |
* * |
3 |
* libgig - C++ cross-platform Gigasampler format file loader library * |
* libgig - C++ cross-platform Gigasampler format file loader library * |
4 |
* * |
* * |
5 |
* Copyright (C) 2003, 2004 by Christian Schoenebeck * |
* Copyright (C) 2003-2005 by Christian Schoenebeck * |
6 |
* <cuse@users.sourceforge.net> * |
* <cuse@users.sourceforge.net> * |
7 |
* * |
* * |
8 |
* This library is free software; you can redistribute it and/or modify * |
* This library is free software; you can redistribute it and/or modify * |
9 |
* it under the terms of the GNU General Public License as published by * |
* it under the terms of the GNU General Public License as published by * |
122 |
uint32_t ReadUint32(); |
uint32_t ReadUint32(); |
123 |
void* LoadChunkData(); ///< Load the whole chunk body in memory (on success returns a pointer to the data in RAM, else NULL). |
void* LoadChunkData(); ///< Load the whole chunk body in memory (on success returns a pointer to the data in RAM, else NULL). |
124 |
void ReleaseChunkData(); ///< Free loaded chunk body data from memory (RAM). |
void ReleaseChunkData(); ///< Free loaded chunk body data from memory (RAM). |
125 |
~Chunk(); |
virtual ~Chunk(); |
126 |
protected: |
protected: |
127 |
uint32_t ChunkID; |
uint32_t ChunkID; |
128 |
uint32_t ChunkSize; /* in bytes */ |
uint32_t ChunkSize; /* in bytes */ |
193 |
unsigned int CountSubChunks(uint32_t ChunkID); |
unsigned int CountSubChunks(uint32_t ChunkID); |
194 |
unsigned int CountSubLists(); |
unsigned int CountSubLists(); |
195 |
unsigned int CountSubLists(uint32_t ListType); |
unsigned int CountSubLists(uint32_t ListType); |
196 |
~List(); |
virtual ~List(); |
197 |
protected: |
protected: |
198 |
typedef std::map<uint32_t, RIFF::Chunk*> ChunkMap; |
typedef std::map<uint32_t, RIFF::Chunk*> ChunkMap; |
199 |
typedef std::list<Chunk*> ChunkList; |
typedef std::list<Chunk*> ChunkList; |
213 |
class File : public List { |
class File : public List { |
214 |
public: |
public: |
215 |
File(const String& path); |
File(const String& path); |
216 |
~File(); |
virtual ~File(); |
217 |
|
const String Filename; |
218 |
private: |
private: |
219 |
unsigned long GetFileSize(); |
unsigned long GetFileSize(); |
220 |
}; |
}; |
229 |
virtual ~Exception() {}; |
virtual ~Exception() {}; |
230 |
}; |
}; |
231 |
|
|
232 |
|
String libraryName(); |
233 |
|
String libraryVersion(); |
234 |
|
|
235 |
} // namespace RIFF |
} // namespace RIFF |
236 |
#endif // __RIFF_H__ |
#endif // __RIFF_H__ |