ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

#include <sound.h>

Collaboration diagram for Myst3::Sound:

List of all members.

Public Member Functions

 Sound (Myst3Engine *vm)
virtual ~Sound ()
SoundChannelgetChannelForSound (uint32 id, SoundType type, bool *found=nullptr)
void playEffect (uint32 id, uint32 volume, uint16 heading=0, uint16 attenuation=0)
void playEffectLooping (uint32 id, uint32 volume, uint16 heading=0, uint16 attenuation=0)
void playEffectFadeInOut (uint32 id, uint32 volume, uint16 heading, uint16 attenuation, uint32 fadeInDuration, uint32 playDuration, uint32 fadeOutDuration)
void stopEffect (uint32 id, uint32 fadeDuration)
void playCue (uint32 id, uint32 volume, uint16 heading, uint16 attenuation)
void stopCue (uint32 fadeDelay)
void stopMusic (uint32 fadeDelay)
bool isPlaying (uint32 id)
int32 playedFrames (uint32 id)
void update ()
void age ()
void fadeOutOldSounds (uint32 fadeDelay)
void computeVolumeBalance (int32 volume, int32 heading, uint attenuation, int32 *mixerVolume, int32 *balance)
void setupNextSound (SoundNextCommand command, int16 controlVar, int16 startSoundId, int16 soundCount, int32 soundMinDelay, int32 soundMaxDelay, int32 controlSoundId=0, int32 controlSoundMaxPosition=0)
void resetSoundVars ()

Private Member Functions

void compute3DVolumes (int32 heading, uint angle, int32 *left, int32 *right)

Private Attributes

Myst3Engine_vm
SoundChannel_channels [kNumChannels]

Static Private Attributes

static const uint kNumChannels = 14

Detailed Description

Definition at line 107 of file sound.h.


Constructor & Destructor Documentation

Myst3::Sound::Sound ( Myst3Engine vm  ) 

Definition at line 39 of file sound.cpp.

Myst3::Sound::~Sound (  )  [virtual]

Definition at line 45 of file sound.cpp.


Member Function Documentation

void Myst3::Sound::age (  ) 

Definition at line 161 of file sound.cpp.

void Myst3::Sound::compute3DVolumes ( int32  heading,
uint  angle,
int32 left,
int32 right 
) [private]

Definition at line 179 of file sound.cpp.

void Myst3::Sound::computeVolumeBalance ( int32  volume,
int32  heading,
uint  attenuation,
int32 mixerVolume,
int32 balance 
)

Definition at line 248 of file sound.cpp.

void Myst3::Sound::fadeOutOldSounds ( uint32  fadeDelay  ) 

Definition at line 166 of file sound.cpp.

SoundChannel * Myst3::Sound::getChannelForSound ( uint32  id,
SoundType  type,
bool *  found = nullptr 
)

Definition at line 130 of file sound.cpp.

bool Myst3::Sound::isPlaying ( uint32  id  ) 

Definition at line 275 of file sound.cpp.

void Myst3::Sound::playCue ( uint32  id,
uint32  volume,
uint16  heading,
uint16  attenuation 
)

Definition at line 120 of file sound.cpp.

int32 Myst3::Sound::playedFrames ( uint32  id  ) 

Definition at line 264 of file sound.cpp.

void Myst3::Sound::playEffect ( uint32  id,
uint32  volume,
uint16  heading = 0,
uint16  attenuation = 0 
)

Definition at line 50 of file sound.cpp.

void Myst3::Sound::playEffectFadeInOut ( uint32  id,
uint32  volume,
uint16  heading,
uint16  attenuation,
uint32  fadeInDuration,
uint32  playDuration,
uint32  fadeOutDuration 
)

Definition at line 68 of file sound.cpp.

void Myst3::Sound::playEffectLooping ( uint32  id,
uint32  volume,
uint16  heading = 0,
uint16  attenuation = 0 
)

Definition at line 57 of file sound.cpp.

void Myst3::Sound::resetSoundVars (  ) 

Definition at line 107 of file sound.cpp.

void Myst3::Sound::setupNextSound ( SoundNextCommand  command,
int16  controlVar,
int16  startSoundId,
int16  soundCount,
int32  soundMinDelay,
int32  soundMaxDelay,
int32  controlSoundId = 0,
int32  controlSoundMaxPosition = 0 
)

Definition at line 281 of file sound.cpp.

void Myst3::Sound::stopCue ( uint32  fadeDelay  ) 

Definition at line 125 of file sound.cpp.

void Myst3::Sound::stopEffect ( uint32  id,
uint32  fadeDuration 
)

Definition at line 90 of file sound.cpp.

void Myst3::Sound::stopMusic ( uint32  fadeDelay  ) 

Definition at line 99 of file sound.cpp.

void Myst3::Sound::update (  ) 

Definition at line 153 of file sound.cpp.


Member Data Documentation

Definition at line 142 of file sound.h.

Definition at line 141 of file sound.h.

const uint Myst3::Sound::kNumChannels = 14 [static, private]

Definition at line 139 of file sound.h.


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


Generated on Sat Nov 16 2019 05:03:31 for ResidualVM by doxygen 1.7.1
curved edge   curved edge