diff options
author | Nicola Mettifogo | 2007-09-19 08:40:12 +0000 |
---|---|---|
committer | Nicola Mettifogo | 2007-09-19 08:40:12 +0000 |
commit | 258901bab96f0050385a9912c8ea0fe2a41b2d6f (patch) | |
tree | a3ae8675b679c9f3b58ac8d97c79369502ea23c1 /engines/sword1/music.cpp | |
parent | a89694c0d61a75a960f5bec6c498659c988401cc (diff) | |
download | scummvm-rg350-258901bab96f0050385a9912c8ea0fe2a41b2d6f.tar.gz scummvm-rg350-258901bab96f0050385a9912c8ea0fe2a41b2d6f.tar.bz2 scummvm-rg350-258901bab96f0050385a9912c8ea0fe2a41b2d6f.zip |
Merged common/stdafx.h into common/scummsys.h. All referencing files have been updated.
svn-id: r28966
Diffstat (limited to 'engines/sword1/music.cpp')
-rw-r--r-- | engines/sword1/music.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/engines/sword1/music.cpp b/engines/sword1/music.cpp index e6acd8f3cd..2b8f622dc0 100644 --- a/engines/sword1/music.cpp +++ b/engines/sword1/music.cpp @@ -23,7 +23,7 @@ * */ -#include "common/stdafx.h" + #include "common/endian.h" #include "common/file.h" #include "common/util.h" @@ -108,12 +108,12 @@ int BaseAudioStream::readBuffer(int16 *buffer, const int numSamples) { *buffer++ = (int16)*src++ << 8; } } - + if (!_samplesLeft && _loop) { rewind(); } } - + return retVal; } @@ -173,7 +173,7 @@ AiffAudioStream::AiffAudioStream(Common::SeekableReadStream *source, bool loop) void AiffAudioStream::rewind() { int rate, size; byte flags; - + _sourceStream->seek(0); if (Audio::loadAIFFFromStream(*_sourceStream, size, rate, flags)) { @@ -189,7 +189,7 @@ int AiffAudioStream::readBuffer(int16 *buffer, const int numSamples) { buffer[i] = (int16)READ_BE_UINT16(buffer + i); } } - + return retVal; } @@ -244,7 +244,7 @@ bool MusicHandle::play(const char *fileBase, bool loop) { if (_file.open(fileName)) _audioSource = new AiffAudioStream(&_file, loop); } - + if (!_audioSource) return false; |