|
From: Tapio V. <aa...@us...> - 2009-11-08 08:30:56
|
Module: performous
Branch: dance
Commit: 5318971840e5e2733d0b786a09b2b092fa264f60
Author: Tapio Vierros <tap...@gm...>
Date: Sun Nov 1 16:48:41 2009 +0200
If there is no separate music tracks for instruments, don't completely kill off the audio when playing wrong.
---
game/screen_sing.cc | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/game/screen_sing.cc b/game/screen_sing.cc
index 397b543..1cf8429 100644
--- a/game/screen_sing.cc
+++ b/game/screen_sing.cc
@@ -106,6 +106,7 @@ void ScreenSing::instrumentLayout(double time) {
} else {
CountSum cs = volume[it->first];
if (cs.first > 0) level = cs.second / cs.first;
+ if (m_song->music.size() <= 1) level = std::max(0.333, level);
m_audio.streamFade(it->first, level);
}
}
|