Public Member Functions | |
| SoundAmiga_LoK (KyraEngine_v1 *vm, Audio::Mixer *mixer) | |
| kType | getMusicType () const override |
| bool | init () override |
| void | initAudioResourceInfo (int set, void *info) override |
| void | selectAudioResourceSet (int set) override |
| bool | hasSoundFile (uint file) const override |
| void | loadSoundFile (uint file) override |
| void | loadSoundFile (const Common::Path &) override |
| void | playTrack (uint8 track) override |
| void | haltTrack () override |
| void | beginFadeOut () override |
| int32 | voicePlay (const char *file, Audio::SoundHandle *handle, uint8 volume, uint8 priority, bool isSfx) override |
| void | playSoundEffect (uint16 track, uint8 volume=0xFF) override |
Public Member Functions inherited from Kyra::Sound | |
| Sound (KyraEngine_v1 *vm, Audio::Mixer *mixer) | |
| virtual kType | getMusicType () const =0 |
| virtual kType | getSfxType () const |
| virtual bool | useDigitalSfx () const |
| virtual bool | init ()=0 |
| virtual void | process () |
| virtual void | updateVolumeSettings () |
| virtual void | initAudioResourceInfo (int set, void *info)=0 |
| virtual void | selectAudioResourceSet (int set)=0 |
| virtual bool | hasSoundFile (uint file) const =0 |
| virtual void | loadSoundFile (uint file)=0 |
| virtual void | loadSoundFile (const Common::Path &file)=0 |
| virtual void | unloadSoundFile (const Common::String &file) |
| virtual void | loadSfxFile (const Common::Path &file) |
| virtual void | playTrack (uint8 track)=0 |
| virtual void | haltTrack ()=0 |
| virtual void | playSoundEffect (uint16 track, uint8 volume=0xFF)=0 |
| virtual void | stopAllSoundEffects () |
| virtual bool | isPlaying () const |
| virtual void | beginFadeOut ()=0 |
| virtual void | beginFadeOut (int) |
| virtual void | pause (bool paused) |
| virtual void | enableMusic (int enable) |
| int | musicEnabled () const |
| void | enableSFX (bool enable) |
| bool | sfxEnabled () const |
| bool | isVoicePresent (const char *file) const |
| virtual int32 | voicePlay (const char *file, Audio::SoundHandle *handle=0, uint8 volume=255, uint8 priority=255, bool isSfx=false) |
| Audio::SeekableAudioStream * | getVoiceStream (const char *file) const |
| bool | playVoiceStream (Audio::AudioStream *stream, Audio::SoundHandle *handle=0, uint8 volume=255, uint8 priority=255, bool isSfx=false) |
| bool | voiceIsPlaying (const Audio::SoundHandle *handle=0) const |
| bool | allVoiceChannelsPlaying () const |
| uint32 | voicePlayedTime (const Audio::SoundHandle &handle) const |
| void | voiceStop (const Audio::SoundHandle *handle=0) |
| virtual int | checkTrigger () |
| virtual void | resetTrigger () |
Protected Types | |
| enum | FileType { kFileNone = -1 , kFileIntro = 0 , kFileGame = 1 , kFileFinal = 2 } |
Protected Types inherited from Kyra::Sound | |
| enum | { kNumChannelHandles = 4 } |
Protected Attributes | |
| Audio::MaxTrax * | _driver |
| Audio::SoundHandle | _musicHandle |
| enum Kyra::SoundAmiga_LoK::FileType | _fileLoaded |
| const AmigaSfxTable * | _tableSfxIntro |
| int | _tableSfxIntro_Size |
| const AmigaSfxTable * | _tableSfxGame |
| int | _tableSfxGame_Size |
Protected Attributes inherited from Kyra::Sound | |
| SoundChannel | _soundChannels [kNumChannelHandles] |
| int | _musicEnabled |
| bool | _sfxEnabled |
| KyraEngine_v1 * | _vm |
| Audio::Mixer * | _mixer |
Additional Inherited Members | |
Public Types inherited from Kyra::Sound | |
| enum | kType { kAdLib , kMidiMT32 , kMidiGM , kTowns , kPC98 , kPCSpkr , kPCjr , kAmiga , kSegaCD , kMac } |
|
inlineoverridevirtual |
Implements Kyra::Sound.
|
overridevirtual |
|
overridevirtual |
Assigns static resource data with information on how to load audio resources to
| set | value defined in AudioResourceSet enum info various types of resource info data (file list, file name pattern, struct, etc. - depending on the inheriting driver type) |
Implements Kyra::Sound.
|
overridevirtual |
Select audio resource set.
| set | value defined in AudioResourceSet enum |
Implements Kyra::Sound.
|
overridevirtual |
Checks if a given sound file is present.
| track | track number |
Implements Kyra::Sound.
|
overridevirtual |
Load a specifc sound file for use of playing music and sound effects.
Implements Kyra::Sound.
|
inlineoverridevirtual |
Load a sound file for playing music (and sometimes sound effects) from.
Implements Kyra::Sound.
|
overridevirtual |
|
overridevirtual |
Stop playback of the current track.
Implements Kyra::Sound.
|
overridevirtual |
Starts fading out the volume.
This keeps fading out the output until it is silenced, but does not change the volume set by setVolume! It will automatically reset the volume when playing a new track or sound effect.
Implements Kyra::Sound.
|
inlineoverridevirtual |
Plays the specified voice file.
Also before starting to play the specified voice file, it stops the current voice.
| file | file to be played |
| volume | volume of the voice file |
| isSfx | marks file as sfx instead of voice |
| handle | store a copy of the sound handle |
Reimplemented from Kyra::Sound.
|
overridevirtual |