aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSylvain Dupont2010-10-09 00:17:55 +0000
committerSylvain Dupont2010-10-09 00:17:55 +0000
commit0fc6572b65908f7d3a7d13537afac67f1cc8a68b (patch)
tree56cab70ec5c570d0915c31caf99a93ccf1bf7415
parente11637c7bc41d59dc6a666d3f0399b9a699b2443 (diff)
downloadscummvm-rg350-0fc6572b65908f7d3a7d13537afac67f1cc8a68b.tar.gz
scummvm-rg350-0fc6572b65908f7d3a7d13537afac67f1cc8a68b.tar.bz2
scummvm-rg350-0fc6572b65908f7d3a7d13537afac67f1cc8a68b.zip
VIDEO: Remove useless references in handleAudioTrack function
svn-id: r53091
-rw-r--r--engines/toon/movie.cpp2
-rw-r--r--engines/toon/movie.h2
-rw-r--r--graphics/video/smk_decoder.cpp2
-rw-r--r--graphics/video/smk_decoder.h2
4 files changed, 4 insertions, 4 deletions
diff --git a/engines/toon/movie.cpp b/engines/toon/movie.cpp
index f01dd90d9c..87a3e878b5 100644
--- a/engines/toon/movie.cpp
+++ b/engines/toon/movie.cpp
@@ -27,7 +27,7 @@
namespace Toon {
-void ToonstruckSmackerDecoder::handleAudioTrack(const byte &track, const uint32 &chunkSize, const uint32 &unpackedSize) {
+void ToonstruckSmackerDecoder::handleAudioTrack(byte track, uint32 chunkSize, uint32 unpackedSize) {
debugC(6, kDebugMovie, "handleAudioTrack(%d, %d, %d)", track, chunkSize, unpackedSize);
if (track == 1 && chunkSize == 4) {
diff --git a/engines/toon/movie.h b/engines/toon/movie.h
index 01da038286..8e1acc4a77 100644
--- a/engines/toon/movie.h
+++ b/engines/toon/movie.h
@@ -34,7 +34,7 @@ namespace Toon {
class ToonstruckSmackerDecoder : public Graphics::SmackerDecoder {
public:
ToonstruckSmackerDecoder(Audio::Mixer *mixer, Audio::Mixer::SoundType soundType = Audio::Mixer::kSFXSoundType);
- void handleAudioTrack(const byte &track, const uint32 &chunkSize, const uint32 &unpackedSize);
+ void handleAudioTrack(byte track, uint32 chunkSize, uint32 unpackedSize);
bool loadFile(const Common::String &filename, int forcedflags) ;
};
diff --git a/graphics/video/smk_decoder.cpp b/graphics/video/smk_decoder.cpp
index db19732798..5100fffc62 100644
--- a/graphics/video/smk_decoder.cpp
+++ b/graphics/video/smk_decoder.cpp
@@ -712,7 +712,7 @@ Surface *SmackerDecoder::decodeNextFrame() {
return _surface;
}
-void SmackerDecoder::handleAudioTrack(const byte &track, const uint32 &chunkSize, const uint32 &unpackedSize) {
+void SmackerDecoder::handleAudioTrack(byte track, uint32 chunkSize, uint32 unpackedSize) {
if (_header.audioInfo[track].hasAudio && chunkSize > 0 && track == 0) {
// If it's track 0, play the audio data
byte *soundBuffer = (byte *)malloc(chunkSize);
diff --git a/graphics/video/smk_decoder.h b/graphics/video/smk_decoder.h
index 1745aee7d2..5faeab4343 100644
--- a/graphics/video/smk_decoder.h
+++ b/graphics/video/smk_decoder.h
@@ -69,7 +69,7 @@ public:
PixelFormat getPixelFormat() const { return PixelFormat::createFormatCLUT8(); }
byte *getPalette() { _dirtyPalette = false; return _palette; }
bool hasDirtyPalette() const { return _dirtyPalette; }
- virtual void handleAudioTrack(const byte &track, const uint32 &chunkSize, const uint32 &unpackedSize);
+ virtual void handleAudioTrack(byte track, uint32 chunkSize, uint32 unpackedSize);
protected:
Common::Rational getFrameRate() const { return _frameRate; }