--- libgig/trunk/src/DLS.h 2006/02/06 17:58:21 834 +++ libgig/trunk/src/DLS.h 2006/11/24 12:50:05 933 @@ -1,8 +1,8 @@ /*************************************************************************** * * - * libgig - C++ cross-platform Gigasampler format file loader library * + * libgig - C++ cross-platform Gigasampler format file access library * * * - * Copyright (C) 2003-2005 by Christian Schoenebeck * + * Copyright (C) 2003-2006 by Christian Schoenebeck * * * * * * This library is free software; you can redistribute it and/or modify * @@ -90,7 +90,7 @@ # define CHUNK_ID_IENG 0x474E4549 # define CHUNK_ID_IGNR 0x524E4749 # define CHUNK_ID_IKEY 0x59454B49 -# define CHUNK_ID_IMED 0x44525049 +# define CHUNK_ID_IMED 0x44454D49 # define CHUNK_ID_INAM 0x4D414E49 # define CHUNK_ID_IPRD 0x44525049 # define CHUNK_ID_ISBJ 0x4A425349 @@ -315,6 +315,8 @@ String Source; ///< . Identifies the name of the person or organization who supplied the original subject of the file. String SourceForm; ///< . Identifies the original form of the material that was digitized, such as record, sampling CD, TV sound track. This is not neccessarily the same as Medium. String Commissioned; ///< . Lists the name of the person or organization that commissioned the subject of the file, e.g., Pope Julian II. + String Subject; ///< . Describes the contents of the file. + bool UseFixedLengthStrings; ///< Set this to true if the info strings should be stored with a fixed length format. This is used for gig files, not for ordinary DLS files. Info(RIFF::List* list); virtual ~Info(); @@ -322,8 +324,8 @@ private: RIFF::List* pResourceListChunk; - void LoadString(uint32_t ChunkID, RIFF::List* lstINFO, String& s); - void SaveString(uint32_t ChunkID, RIFF::List* lstINFO, const String& s, const String& sDefault); + static void LoadString(uint32_t ChunkID, RIFF::List* lstINFO, String& s); + static void SaveString(uint32_t ChunkID, RIFF::List* lstINFO, const String& s, const String& sDefault, bool bUseFixedLengthStrings, int size); }; /** Abstract base class which encapsulates data structures which all DLS resources are able to provide. */