From 21ca67095667e520772ee3b3757c47c9e0fbe18d Mon Sep 17 00:00:00 2001 From: brunzelchen Date: Sun, 10 Apr 2011 17:29:48 +0000 Subject: 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 --- Game/Code/Screens/UScreenEditSub.pas | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Game') 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 -- cgit v1.2.3