From c4f1b4f542dc44b00e2a49ae8ab097130e0c050a Mon Sep 17 00:00:00 2001 From: brunzelchen Date: Fri, 8 Oct 2010 16:04:14 +0000 Subject: - ultrastar should detect on every single beat now - new option: mic delay (between screen/music and tone detection) git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/branches/1.0.1 Challenge MOD@2640 b956fd51-792f-4845-bead-9b4dfca2ff2c --- Game/Code/Classes/UIni.pas | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'Game/Code/Classes/UIni.pas') diff --git a/Game/Code/Classes/UIni.pas b/Game/Code/Classes/UIni.pas index 682016b8..66bfba26 100644 --- a/Game/Code/Classes/UIni.pas +++ b/Game/Code/Classes/UIni.pas @@ -51,6 +51,7 @@ type BeatClick: integer; SavePlayback: integer; Threshold: integer; + Delay: integer; //Song Preview PreviewVolume: integer; @@ -168,6 +169,8 @@ const IBeatClick: array[0..1] of string = ('Off', 'On'); ISavePlayback: array[0..1] of string = ('Off', 'On'); IThreshold: array[0..3] of string = ('5%', '10%', '15%', '20%'); + IDelay: array[0..9] of string = ('0ms', '10ms', '20ms', '30ms', '40ms', '50ms', '60ms', '70ms', '80ms', '90ms'); + //Song Preview IPreviewVolume: array[0..10] of string = ('Off', '10%', '20%', '30%', '40%', '50%', '60%', '70%', '80%', '90%', '100%'); IPreviewFading: array[0..5] of string = ('Off', '1 Sec', '2 Secs', '3 Secs', '4 Secs', '5 Secs'); @@ -434,6 +437,11 @@ begin for Pet := 0 to High(IThreshold) do if Tekst = IThreshold[Pet] then Ini.Threshold := Pet; + // Delay + Tekst := IniFile.ReadString('Sound', 'Delay', IDelay[5]); + for Pet := 0 to High(IDelay) do + if Tekst = IDelay[Pet] then Ini.Delay := Pet; + //Song Preview Tekst := IniFile.ReadString('Sound', 'PreviewVolume', IPreviewVolume[7]); for Pet := 0 to High(IPreviewVolume) do @@ -791,6 +799,10 @@ begin Tekst := IThreshold[Ini.Threshold]; IniFile.WriteString('Sound', 'Threshold', Tekst); + // Delay + Tekst := IDelay[Ini.Delay]; + IniFile.WriteString('Sound', 'Delay', Tekst); + // Song Preview Tekst := IPreviewVolume[Ini.PreviewVolume]; IniFile.WriteString('Sound', 'PreviewVolume', Tekst); -- cgit v1.2.3