ScummVM API documentation
Mohawk::RivenSound Class Reference

#include <riven_sound.h>

Public Member Functions

 RivenSound (MohawkEngine_Riven *vm, Audio::RewindableAudioStream *rewindStream, Audio::Mixer::SoundType mixerType)
 
void play ()
 
bool isPlaying () const
 
void pause ()
 
uint16 getVolume () const
 
void setVolume (uint16 volume)
 
int16 getBalance () const
 
void setBalance (int16 balance)
 
void setLooping (bool loop)
 

Detailed Description

A sound used internally by the SoundManager

Member Function Documentation

◆ play()

void Mohawk::RivenSound::play ( )

Start playing the sound stream passed to the constructor

◆ isPlaying()

bool Mohawk::RivenSound::isPlaying ( ) const

Is the sound currently playing ar paused?

◆ pause()

void Mohawk::RivenSound::pause ( )

Pause the playback, the play method resumes

◆ getVolume()

uint16 Mohawk::RivenSound::getVolume ( ) const

Get the current volume

◆ setVolume()

void Mohawk::RivenSound::setVolume ( uint16  volume)

Change the playback volume

◆ getBalance()

int16 Mohawk::RivenSound::getBalance ( ) const

Get the current balance

◆ setBalance()

void Mohawk::RivenSound::setBalance ( int16  balance)

Change the balance

◆ setLooping()

void Mohawk::RivenSound::setLooping ( bool  loop)

Set the sound to indefinitely loop. Must be called before starting the playback


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