aboutsummaryrefslogtreecommitdiffstats
path: root/Game
diff options
context:
space:
mode:
authorbrunzelchen <brunzelchen@b956fd51-792f-4845-bead-9b4dfca2ff2c>2011-04-10 17:29:48 +0000
committerbrunzelchen <brunzelchen@b956fd51-792f-4845-bead-9b4dfca2ff2c>2011-04-10 17:29:48 +0000
commit21ca67095667e520772ee3b3757c47c9e0fbe18d (patch)
treec05045fdeeeb127c22f39522f22406bdfe7ced61 /Game
parentc274cd75771c36e0e06f6cf14641ee89e69b43c1 (diff)
downloadusdx-21ca67095667e520772ee3b3757c47c9e0fbe18d.tar.gz
usdx-21ca67095667e520772ee3b3757c47c9e0fbe18d.tar.xz
usdx-21ca67095667e520772ee3b3757c47c9e0fbe18d.zip
play midi with clicks
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/branches/1.0.1 Challenge MOD@2818 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to '')
-rw-r--r--Game/Code/Screens/UScreenEditSub.pas6
1 files changed, 5 insertions, 1 deletions
diff --git a/Game/Code/Screens/UScreenEditSub.pas b/Game/Code/Screens/UScreenEditSub.pas
index 8ff9d0e7..8443b233 100644
--- a/Game/Code/Screens/UScreenEditSub.pas
+++ b/Game/Code/Screens/UScreenEditSub.pas
@@ -906,6 +906,7 @@ begin
MidiStop := GetTimeFromBeat(Czesci[CP].Czesc[Czesci[CP].Akt].Koniec);
LastClick := Czesci[CP].Czesc[Czesci[CP].Akt].StartNote-1;
+ Click := true;
end;
// one line midi + mp3
@@ -3093,6 +3094,9 @@ begin
MidiOut.PutShort($91, Czesci[CP].Czesc[Czesci[CP].Akt].Nuta[Pet].Ton + 60, 127);
MidiLastNote := Pet;
end;
+
+ if Click and not PlaySentence then
+ Music.PlayClick;
end;
end; // if PlaySentenceMidi
@@ -3113,7 +3117,7 @@ begin
EditorLyric[CP].Selected := AktNuta[CP];
end;
- if (Click) and (PlaySentence) then
+ if Click then
begin
Text[TextDebug].Text := IntToStr(AktBeat);
if PlayClick then