LastExpress::StreamedSound Class Reference

#include <snd.h>

+ Inheritance diagram for LastExpress::StreamedSound:
+ Collaboration diagram for LastExpress::StreamedSound:

Public Member Functions

 StreamedSound ()
 ~StreamedSound () override
bool load (Common::SeekableReadStream *stream, uint32 volume, bool looped, uint32 startBlock=0)
bool isFinished () override
void setVolume (uint32 newVolume)
void setVolumeSmoothly (uint32 newVolume)
- Public Member Functions inherited from LastExpress::SimpleSound
 SimpleSound ()
virtual ~SimpleSound ()
void stop () const
uint32 getTimeMS ()

Private Attributes

bool _loaded

Additional Inherited Members

- Protected Member Functions inherited from LastExpress::SimpleSound
void loadHeader (Common::SeekableReadStream *in)
LastExpress_ADPCMStreammakeDecoder (Common::SeekableReadStream *in, uint32 size, uint32 volume, bool looped) const
void play (Audio::AudioStream *as, DisposeAfterUse::Flag autofreeStream)
- Protected Attributes inherited from LastExpress::SimpleSound
uint32 _size
 data size More...
uint16 _blocks
 number of blocks More...
uint32 _blockSize
Audio::SoundHandle _handle

Detailed Description

Definition at line 78 of file snd.h.

Constructor & Destructor Documentation

◆ StreamedSound()

LastExpress::StreamedSound::StreamedSound ( )

Definition at line 492 of file snd.cpp.

◆ ~StreamedSound()

LastExpress::StreamedSound::~StreamedSound ( )

Definition at line 494 of file snd.cpp.

Member Function Documentation

◆ isFinished()

bool LastExpress::StreamedSound::isFinished ( )

Implements LastExpress::SimpleSound.

Definition at line 525 of file snd.cpp.

◆ load()

bool LastExpress::StreamedSound::load ( Common::SeekableReadStream stream,
uint32  volume,
bool  looped,
uint32  startBlock = 0 

Definition at line 500 of file snd.cpp.

◆ setVolume()

void LastExpress::StreamedSound::setVolume ( uint32  newVolume)

Definition at line 532 of file snd.cpp.

◆ setVolumeSmoothly()

void LastExpress::StreamedSound::setVolumeSmoothly ( uint32  newVolume)

Definition at line 539 of file snd.cpp.

Member Data Documentation

◆ _as

LastExpress_ADPCMStream* LastExpress::StreamedSound::_as

Definition at line 90 of file snd.h.

◆ _loaded

bool LastExpress::StreamedSound::_loaded

Definition at line 91 of file snd.h.

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