#include <sound_intern.h>
Public Member Functions | |
SoundMidiPC (KyraEngine_v1 *vm, Audio::Mixer *mixer, MidiDriver *driver, kType type) | |
kType | getMusicType () const override |
bool | init () override |
void | updateVolumeSettings () 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 &file) override |
void | loadSfxFile (const Common::Path &file) override |
void | playTrack (uint8 track) override |
void | haltTrack () override |
bool | isPlaying () const override |
void | playSoundEffect (uint16 track, uint8 volume=0xFF) override |
void | stopAllSoundEffects () override |
void | beginFadeOut () override |
void | pause (bool paused) override |
Public Member Functions inherited from Kyra::Sound | |
Sound (KyraEngine_v1 *vm, Audio::Mixer *mixer) | |
virtual kType | getSfxType () const |
virtual bool | useDigitalSfx () const |
virtual void | process () |
virtual void | unloadSoundFile (const Common::String &file) |
virtual void | beginFadeOut (int) |
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 () |
Additional Inherited Members | |
Public Types inherited from Kyra::Sound | |
enum | kType { kAdLib, kMidiMT32, kMidiGM, kTowns, kPC98, kPCSpkr, kPCjr, kAmiga, kSegaCD, kMac } |
Protected Types inherited from Kyra::Sound | |
enum | { kNumChannelHandles = 4 } |
Protected Attributes inherited from Kyra::Sound | |
SoundChannel | _soundChannels [kNumChannelHandles] |
int | _musicEnabled |
bool | _sfxEnabled |
KyraEngine_v1 * | _vm |
Audio::Mixer * | _mixer |
MIDI output device.
This device supports both MT-32 MIDI, as used in Kyrandia 1 and 2, and GM MIDI, as used in Kyrandia 2.
|
overridevirtual |
|
overridevirtual |
Updates internal volume settings according to ConfigManager.
Reimplemented from Kyra::Sound.
|
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.
|
overridevirtual |
Load a sound file for playing music (and sometimes sound effects) from.
Implements Kyra::Sound.
|
overridevirtual |
Load a sound file for playing sound effects from.
Reimplemented from Kyra::Sound.
|
overridevirtual |
|
overridevirtual |
Stop playback of the current track.
Implements Kyra::Sound.
|
overridevirtual |
Checks if the sound driver plays any sound.
Reimplemented from Kyra::Sound.
|
overridevirtual |
|
overridevirtual |
Stop playback of all sfx tracks.
Reimplemented from 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.
|
overridevirtual |
Stops all audio playback when paused. Continues after end of pause.
Reimplemented from Kyra::Sound.