[Scummvm-cvs-logs] scummvm master -> 7d6d7a7945dc75f94fce5e68ed0b0d784edb43c1

Strangerke Strangerke at scummvm.org
Fri Aug 9 18:38:27 CEST 2013


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
7d6d7a7945 MORTEVIELLE: Use more accurate frequency for music


Commit: 7d6d7a7945dc75f94fce5e68ed0b0d784edb43c1
    https://github.com/scummvm/scummvm/commit/7d6d7a7945dc75f94fce5e68ed0b0d784edb43c1
Author: Strangerke (strangerke at scummvm.org)
Date: 2013-08-09T09:37:17-07:00

Commit Message:
MORTEVIELLE: Use more accurate frequency for music

Changed paths:
    engines/mortevielle/sound.cpp



diff --git a/engines/mortevielle/sound.cpp b/engines/mortevielle/sound.cpp
index 24cec89..7172365 100644
--- a/engines/mortevielle/sound.cpp
+++ b/engines/mortevielle/sound.cpp
@@ -186,7 +186,10 @@ void SoundManager::playNote(int frequency, int32 length) {
 
 
 void SoundManager::playSong(const byte* buf, uint size, uint loops) {
-	Audio::SeekableAudioStream *raw = Audio::makeRawStream(buf, size, 11025, Audio::FLAG_UNSIGNED, DisposeAfterUse::NO);
+
+	int freq = kTempoMusic * 10 * 25.2;
+	warning("%d", freq);
+	Audio::SeekableAudioStream *raw = Audio::makeRawStream(buf, size, freq, Audio::FLAG_UNSIGNED, DisposeAfterUse::NO);
 	Audio::AudioStream *stream = Audio::makeLoopingAudioStream(raw, loops);
 	Audio::SoundHandle songHandle;
 	_mixer->playStream(Audio::Mixer::kSFXSoundType, &songHandle, stream, -1, Audio::Mixer::kMaxChannelVolume, 0, DisposeAfterUse::YES);






More information about the Scummvm-git-logs mailing list