25 #ifndef SOUND_FMODSAMPLEBANK_H 26 #define SOUND_FMODSAMPLEBANK_H 34 class RewindableAudioStream;
110 #endif // SOUND_FMODSAMPLEBANK_H uint32 length
Length of the sample, in audio samples.
FMODSampleBank(Common::SeekableReadStream *fsb)
A class holding an UTF-8 string.
bool hasSample(const Common::UString &name) const
Does a sample with this name exist in the sample bank?
size_t offset
Offset to the sample within the FSB.
std::vector< Sample > _samples
void load(Common::SeekableReadStream &fsb)
A simple scoped smart pointer template.
size_t size
Size of the sample in bytes.
A rewindable audio stream.
Common::UString name
Name of the sample.
size_t getSampleCount() const
Return the number of sample files.
Basic reading stream interfaces.
Class to hold audio resource data of an FMOD samplebank file.
Common::ScopedPtr< Common::SeekableReadStream > _fsb
RewindableAudioStream * getSample(size_t index) const
Return the audio stream of a sample, by index.
const Common::UString & getSampleName(size_t index) const
Return the name of a sample.
std::map< Common::UString, const Sample * > _sampleMap
Interface for a seekable & readable data stream.