22 #ifndef NUVIE_SOUND_MIXER_DECODER_PC_SPEAKER_STREAM_H 23 #define NUVIE_SOUND_MIXER_DECODER_PC_SPEAKER_STREAM_H 25 #include "ultima/shared/std/string.h" 26 #include "ultima/nuvie/sound/decoder/pc_speaker.h" 27 #include "audio/audiostream.h" 50 return SPKR_OUTPUT_RATE;
82 uint32 getLengthInMsec();
83 int readBuffer(sint16 *buffer,
const int numSamples)
override;
89 uint32 total_samples_played;
101 uint32 getLengthInMsec();
102 int readBuffer(sint16 *buffer,
const int numSamples)
override;
113 float samples_per_step;
115 uint32 total_samples_played;
129 uint32 getLengthInMsec();
130 uint16 getNextFreqValue();
131 int readBuffer(sint16 *buffer,
const int numSamples)
override;
141 uint32 total_samples_played;
142 uint32 samples_per_step;
156 uint32 getLengthInMsec();
157 int readBuffer(sint16 *buffer,
const int numSamples)
override;
170 float delay_remaining;
176 Audio::AudioStream *makePCSpeakerMagicCastingP1SfxStream(uint rate, uint8 magic_circle);
177 Audio::AudioStream *makePCSpeakerMagicCastingP2SfxStream(uint rate, uint8 magic_circle);
virtual int readBuffer(int16 *buffer, const int numSamples)=0
Definition: pc_speaker_stream.h:121
bool endOfData() const override
Definition: pc_speaker_stream.h:60
int getRate() const override
Definition: pc_speaker_stream.h:49
bool isStereo() const override
Definition: pc_speaker_stream.h:44
Definition: pc_speaker_stream.h:93
Definition: pc_speaker_stream.h:74
Definition: detection.h:27
Definition: pc_speaker.h:32
Definition: audiostream.h:50
Definition: pc_speaker_stream.h:148
Definition: audiostream.h:109
Definition: pc_speaker_stream.h:32
bool rewind() override
Definition: pc_speaker_stream.h:64