diff options
author | Max Horn | 2004-11-27 15:58:18 +0000 |
---|---|---|
committer | Max Horn | 2004-11-27 15:58:18 +0000 |
commit | ba74a8e7f657cf795046a5cf6a7ead701fd4194e (patch) | |
tree | 0d05c0dfa38e10542ca83ffeeb37ddd782c56ef7 /simon/sound.cpp | |
parent | b78ac6a18b2cb851718ef84b04557f7fba8d399a (diff) | |
download | scummvm-rg350-ba74a8e7f657cf795046a5cf6a7ead701fd4194e.tar.gz scummvm-rg350-ba74a8e7f657cf795046a5cf6a7ead701fd4194e.tar.bz2 scummvm-rg350-ba74a8e7f657cf795046a5cf6a7ead701fd4194e.zip |
Added some more mixer doxygen docs; cleaned up Mixer API a bit, removing some very specialised methods
svn-id: r15914
Diffstat (limited to 'simon/sound.cpp')
-rw-r--r-- | simon/sound.cpp | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/simon/sound.cpp b/simon/sound.cpp index 9eca280ef8..56b14b8d00 100644 --- a/simon/sound.cpp +++ b/simon/sound.cpp @@ -18,10 +18,16 @@ */ #include "stdafx.h" + #include "common/file.h" #include "common/util.h" + #include "simon/sound.h" + +#include "sound/flac.h" +#include "sound/mp3.h" #include "sound/voc.h" +#include "sound/vorbis.h" namespace Simon { @@ -213,7 +219,7 @@ void MP3Sound::playSound(uint sound, PlayingSoundHandle *handle, byte flags) uint32 size = _offsets[sound + i] - _offsets[sound]; - _mixer->playMP3(handle, _file, size); + _mixer->playInputStream(handle, makeMP3Stream(_file, size), false); } #endif @@ -237,7 +243,7 @@ void VorbisSound::playSound(uint sound, PlayingSoundHandle *handle, byte flags) uint32 size = _offsets[sound + i] - _offsets[sound]; - _mixer->playVorbis(handle, _file, size); + _mixer->playInputStream(handle, makeVorbisStream(_file, size), false); } #endif @@ -261,7 +267,7 @@ void FlacSound::playSound(uint sound, PlayingSoundHandle *handle, byte flags) uint32 size = _offsets[sound + i] - _offsets[sound]; - _mixer->playFlac(handle, _file, size); + _mixer->playInputStream(handle, makeFlacStream(_file, size), false); } #endif |