ScummVM API documentation
Ultima::Nuvie::PCSpeakerStream Class Reference
Inheritance diagram for Ultima::Nuvie::PCSpeakerStream:
Audio::RewindableAudioStream Audio::AudioStream Ultima::Nuvie::PCSpeakerFreqStream Ultima::Nuvie::PCSpeakerRandomStream Ultima::Nuvie::PCSpeakerStutterStream Ultima::Nuvie::PCSpeakerSweepFreqStream

Public Member Functions

bool isStereo () const override
 
int getRate () const override
 
bool endOfData () const override
 
bool rewind () override
 
- Public Member Functions inherited from Audio::AudioStream
virtual int readBuffer (int16 *buffer, const int numSamples)=0
 
virtual bool endOfStream () const
 

Protected Attributes

PCSpeakerpcspkr
 
bool finished
 

Member Function Documentation

◆ isStereo()

bool Ultima::Nuvie::PCSpeakerStream::isStereo ( ) const
inlineoverridevirtual

Is this a stereo stream?

Implements Audio::AudioStream.

◆ getRate()

int Ultima::Nuvie::PCSpeakerStream::getRate ( ) const
inlineoverridevirtual

Sample rate of the stream.

Implements Audio::AudioStream.

◆ endOfData()

bool Ultima::Nuvie::PCSpeakerStream::endOfData ( ) const
inlineoverridevirtual

End of data reached? If this returns true, it means that at this time there is no data available in the stream. However there may be more data in the future. This is used by e.g. a rate converter to decide whether to keep on converting data or stop.

Implements Audio::AudioStream.

◆ rewind()

bool Ultima::Nuvie::PCSpeakerStream::rewind ( )
inlineoverridevirtual

Rewind the stream to its start.

Returns
True on success, false otherwise.

Implements Audio::RewindableAudioStream.


The documentation for this class was generated from the following file: