ScummVM API documentation
Tinsel::SoundManager Class Reference

Classes

struct  Channel
 

Public Member Functions

 SoundManager (TinselEngine *vm)
 
bool playSample (int id, Audio::Mixer::SoundType type, Audio::SoundHandle *handle=0)
 
bool playSample (int id, int sub, bool bLooped, int x, int y, int priority, Audio::Mixer::SoundType type, Audio::SoundHandle *handle=0)
 
void playDW1MacMusic (Common::File &s, uint32 length)
 
void stopAllSamples ()
 
void stopSpecSample (int id, int sub=0)
 
void setSFXVolumes (uint8 volume)
 
bool sampleExists (int id)
 
bool sampleIsPlaying ()
 
void openSampleFiles ()
 
void closeSampleStream ()
 

Protected Types

enum  { kChannelTalk = 0, kChannelTinsel1 = 0, kChannelSFX = 1, kChannelDW1MacMusic = 2 }
 
enum  SoundMode { kVOCMode, kMP3Mode, kVorbisMode, kFLACMode }
 

Protected Member Functions

bool offscreenChecks (int x, int &y)
 
int8 getPan (int x)
 

Protected Attributes

Channel _channels [kNumChannels]
 
uint32 * _sampleIndex
 
int _sampleIndexLen
 
SoundMode _soundMode
 
TinselFile _sampleStream
 

Static Protected Attributes

static const int kNumSFX = 3
 
static const int kNumChannels = kChannelSFX + kNumSFX
 

Member Data Documentation

◆ _sampleIndex

uint32* Tinsel::SoundManager::_sampleIndex
protected

Sample index buffer and number of entries

◆ _sampleIndexLen

int Tinsel::SoundManager::_sampleIndexLen
protected

Number of entries in the sample index

◆ _soundMode

SoundMode Tinsel::SoundManager::_soundMode
protected

Specifies if the sample-data is compressed and if yes, how

◆ _sampleStream

TinselFile Tinsel::SoundManager::_sampleStream
protected

file stream for sample file


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