|
AudioDataLib
A C++ library of classes supporting a variety of audio-data tasks.
|
This class knows how to read (and one day write) DLS files. More...
#include <DownloadableSoundFormat.h>
Public Member Functions | |
| DownloadableSoundFormat () | |
| virtual | ~DownloadableSoundFormat () |
| virtual bool | ReadFromStream (ByteStream &inputStream, FileData *&fileData, Error &error) override |
| virtual bool | WriteToStream (ByteStream &outputStream, const FileData *fileData, Error &error) override |
Public Member Functions inherited from AudioDataLib::FileFormat | |
| FileFormat () | |
| virtual | ~FileFormat () |
Additional Inherited Members | |
Static Public Member Functions inherited from AudioDataLib::FileFormat | |
| static std::shared_ptr< FileFormat > | CreateForFile (const std::string &filePath) |
This class knows how to read (and one day write) DLS files.
DLS stands for downloadable sound. It's a RIFF-based file that contains a bunch of instruments (timbers, you could say) and their associated sound samples, and details how those sounds are to be replayed as a function of the MIDI protocol.
| DownloadableSoundFormat::DownloadableSoundFormat | ( | ) |
|
virtual |
|
overridevirtual |
The given file data pointer is assigned an instance of some derivative of the FileData class which is, in turn, populated with the data found in the given stream.
| [in,out] | inputStream | This must be a ByteStream derivative that can handle read operations. |
| [out] | fileData | On success, this pointer is assigned a heap allocation the user is reponsible for freeing. |
| [out] | error | This will contain error information if false is returned. |
Implements AudioDataLib::FileFormat.
|
overridevirtual |
The given file data is written to the given stream.
| [out] | outputStream | This must be a ByteStream derivative that can accept write operations. |
| [in] | fileData | This is the file data to be written to the stream. |
| [out] | error | This will contain error information if false is returned. |
Implements AudioDataLib::FileFormat.