ScummVM API documentation
Audio::PacketizedAudioStream Class Referenceabstract

#include <audiostream.h>

Inheritance diagram for Audio::PacketizedAudioStream:
Audio::AudioStream Audio::APCStream Audio::StatelessPacketizedAudioStream Audio::XanDPCMStream

Public Member Functions

virtual void queuePacket (Common::SeekableReadStream *data)=0
 
virtual void finish ()=0
 
- Public Member Functions inherited from Audio::AudioStream
virtual int readBuffer (int16 *buffer, const int numSamples)=0
 
virtual bool isStereo () const =0
 
virtual int getRate () const =0
 
virtual bool endOfData () const =0
 
virtual bool endOfStream () const
 

Detailed Description

An AudioStream designed to work in terms of packets.

It is similar in concept to the QueuingAudioStream, but does not necessarily rely on the data from each queued AudioStream being separate.

Member Function Documentation

◆ queuePacket()

virtual void Audio::PacketizedAudioStream::queuePacket ( Common::SeekableReadStream data)
pure virtual

Queue the next packet to be decoded.

Implemented in Audio::StatelessPacketizedAudioStream.

◆ finish()

virtual void Audio::PacketizedAudioStream::finish ( )
pure virtual

Mark this stream as finished. That is, signal that no further data

This is used to signal that no further data will be queued to the stream. The stream is only considered as ended after this has been done.

Implemented in Audio::StatelessPacketizedAudioStream.


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