diff options
author | Johannes Schickel | 2012-11-23 03:01:48 +0100 |
---|---|---|
committer | Johannes Schickel | 2012-11-23 03:01:48 +0100 |
commit | 10c4baad5f3d6d595d6d957d6d0ccb1509acead3 (patch) | |
tree | 87595bc545ffc65666f4df45dcaa071a2ce57993 /engines/kyra/sound.h | |
parent | 5a352da4378b411ce13e2285cedb6429f2e213af (diff) | |
download | scummvm-rg350-10c4baad5f3d6d595d6d957d6d0ccb1509acead3.tar.gz scummvm-rg350-10c4baad5f3d6d595d6d957d6d0ccb1509acead3.tar.bz2 scummvm-rg350-10c4baad5f3d6d595d6d957d6d0ccb1509acead3.zip |
KYRA: Move SoundDigital declaration to its own header.
Diffstat (limited to 'engines/kyra/sound.h')
-rw-r--r-- | engines/kyra/sound.h | 80 |
1 files changed, 0 insertions, 80 deletions
diff --git a/engines/kyra/sound.h b/engines/kyra/sound.h index 3a0eee7d3b..9119fb44fa 100644 --- a/engines/kyra/sound.h +++ b/engines/kyra/sound.h @@ -329,86 +329,6 @@ private: Sound *_music, *_sfx; }; -// Digital Audio -class AUDStream; -class KyraAudioStream; -class KyraEngine_MR; - -/** - * Digital audio output device. - * - * This is just used for Kyrandia 3. - */ -class SoundDigital { -public: - SoundDigital(KyraEngine_MR *vm, Audio::Mixer *mixer); - ~SoundDigital(); - - /** - * Plays a sound. - * - * @param filename file to be played - * @param priority priority of the sound - * @param type type - * @param volume channel volume - * @param loop true if the sound should loop (endlessly) - * @param channel tell the sound player to use a specific channel for playback - * - * @return channel playing the sound - */ - int playSound(const char *filename, uint8 priority, Audio::Mixer::SoundType type, int volume = 255, bool loop = false, int channel = -1); - - /** - * Checks if a given channel is playing a sound. - * - * @param channel channel number to check - * @return true if playing, else false - */ - bool isPlaying(int channel); - - /** - * Stop the playback of a sound in the given - * channel. - * - * @param channel channel number - */ - void stopSound(int channel); - - /** - * Stops playback of all sounds. - */ - void stopAllSounds(); - - /** - * Makes the sound in a given channel - * fading out. - * - * @param channel channel number - * @param ticks fadeout time - */ - void beginFadeOut(int channel, int ticks); -private: - KyraEngine_MR *_vm; - Audio::Mixer *_mixer; - - struct Sound { - Audio::SoundHandle handle; - - char filename[16]; - uint8 priority; - KyraAudioStream *stream; - } _sounds[4]; - - struct AudioCodecs { - const char *fileext; - Audio::SeekableAudioStream *(*streamFunc)( - Common::SeekableReadStream *stream, - DisposeAfterUse::Flag disposeAfterUse); - }; - - static const AudioCodecs _supportedCodecs[]; -}; - } // End of namespace Kyra #endif |