Interface for PCM sample databases.
More...
#include <synthbase.h>
Interface for PCM sample databases.
- A PCM sample database stores a set of PCM sample sources and allows the calling object access to these sources; for example a PCM oscillator would request a PCM sample source pointer for the "303Snare" PCM sample set
- The database interface functions allow:
- get a PCM sample source interface pointer
- add/remove PCM sample sources to/from the database
- clear all the table sources (for destruction time)
- Author
- Will Pirkle http://www.willpirkle.com
- Version
- Revision : 1.0
- Date
- Date : 2021 / 04 / 26
◆ addSampleSource()
virtual bool SynthLab::IPCMSampleDatabase::addSampleSource |
( |
const char * |
uniqueSampleSetName, |
|
|
IPCMSampleSource * |
sampleSource |
|
) |
| |
|
pure virtual |
adds a PCM sample to the database
- Parameters
-
uniqueSampleSetName | the name of the PCM sample set |
sampleSource | the IPCMSampleSource interface pointer to the object |
- Returns
- true if sucessful, false otherwise
Implemented in SynthLab::PCMSampleDatabase.
◆ clearSampleSources()
virtual bool SynthLab::IPCMSampleDatabase::clearSampleSources |
( |
| ) |
|
|
pure virtual |
◆ getSampleSource()
virtual IPCMSampleSource* SynthLab::IPCMSampleDatabase::getSampleSource |
( |
const char * |
uniqueSampleSetName | ) |
|
|
pure virtual |
get a PCM sample source based on its unique name string
- Parameters
-
uniqueSampleSetName | the name of the PCM samples (usually the name of a folder that contains the samples as WAV files) |
- Returns
- an IPCMSampleSource pointer to the source
Implemented in SynthLab::PCMSampleDatabase.
◆ removeSampleSource()
virtual bool SynthLab::IPCMSampleDatabase::removeSampleSource |
( |
const char * |
uniqueSampleSetName | ) |
|
|
pure virtual |
remove a PCM sample set from the database
- Parameters
-
uniqueSampleSetName | the name of the sample set |
- Returns
- true if sucessful, false otherwise
Implemented in SynthLab::PCMSampleDatabase.
The documentation for this class was generated from the following file: