22 #ifndef NUVIE_SOUND_MIXER_DECODER_ADLIB_SFX_STREAM_H 23 #define NUVIE_SOUND_MIXER_DECODER_ADLIB_SFX_STREAM_H 25 #include "ultima/shared/std/string.h" 26 #include "ultima/nuvie/sound/adplug/opl_class.h" 27 #include "audio/audiostream.h" 32 class OriginFXAdLibDriver;
48 int readBuffer(sint16 *buffer,
const int numSamples)
override;
57 return opl->getRate();
72 if (total_samples_played >= duration) {
78 uint32 getLengthInMsec() {
79 return (uint32)(duration / (
getRate() / 1000.0f));
86 int interrupt_samples_left;
88 uint32 total_samples_played;
Definition: adlib_sfx_stream.h:38
Definition: origin_fx_adib_driver.h:34
Definition: configuration.h:61
int getRate() const override
Definition: adlib_sfx_stream.h:56
Definition: detection.h:27
Definition: opl_class.h:176
Definition: audiostream.h:109
bool endOfData() const override
Definition: adlib_sfx_stream.h:71
bool rewind() override
Definition: adlib_sfx_stream.h:60
int readBuffer(sint16 *buffer, const int numSamples) override
bool isStereo() const override
Definition: adlib_sfx_stream.h:51