diff options
author | tobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2010-05-08 22:46:29 +0000 |
---|---|---|
committer | tobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2010-05-08 22:46:29 +0000 |
commit | 69cd34b1a50914fad7e5befaa848a6a2c537b4ac (patch) | |
tree | 2af1f9f588faa82c445026c212250f9cf38d26a2 /src/base/UMain.pas | |
parent | 4ae6069e48c8b30610cec32c7508e2a7400d4d35 (diff) | |
download | usdx-69cd34b1a50914fad7e5befaa848a6a2c537b4ac.tar.gz usdx-69cd34b1a50914fad7e5befaa848a6a2c537b4ac.tar.xz usdx-69cd34b1a50914fad7e5befaa848a6a2c537b4ac.zip |
validate microphone settings when leaving the record options and when USDX is started:
- check if a user is assigned to multiple devices. If this is the case either do not leave the record options (if we already are there) or enter the record options (if USDX was started)
- the check is performed by calling TAudioInputProcessor.ValidateSettings()
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@2346 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to '')
-rw-r--r-- | src/base/UMain.pas | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/base/UMain.pas b/src/base/UMain.pas index 53518d1e..8e938e52 100644 --- a/src/base/UMain.pas +++ b/src/base/UMain.pas @@ -78,6 +78,7 @@ uses UPathUtils, UPlaylist, UMusic, + URecord, UBeatTimer, UPlatform, USkins, @@ -294,6 +295,10 @@ begin Log.BenchmarkEnd(0); Log.LogBenchmark('Loading Time', 0); + // check microphone settings, goto record options if they are corrupt + if (not AudioInputProcessor.ValidateSettings) then + Display.CurrentScreen^.FadeTo( @ScreenOptionsRecord ); + //------------------------------ // Start Mainloop //------------------------------ |