diff options
author | tobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2008-03-05 11:16:44 +0000 |
---|---|---|
committer | tobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2008-03-05 11:16:44 +0000 |
commit | f786f747554c79de3a7aa1fd63cd1e7c2e0763c3 (patch) | |
tree | 55d68e30dd0117689fb36a2ebe3c2849f1c74652 /Game/Code/Screens | |
parent | 80c3bf3f4b428d03c0f237ebb001e002abe5f9e4 (diff) | |
download | usdx-f786f747554c79de3a7aa1fd63cd1e7c2e0763c3.tar.gz usdx-f786f747554c79de3a7aa1fd63cd1e7c2e0763c3.tar.xz usdx-f786f747554c79de3a7aa1fd63cd1e7c2e0763c3.zip |
FFT support for SDL/Portaudio playback
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@909 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to '')
-rw-r--r-- | Game/Code/Screens/UScreenOptionsRecord.pas | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Game/Code/Screens/UScreenOptionsRecord.pas b/Game/Code/Screens/UScreenOptionsRecord.pas index 3da29f43..53d0b2ad 100644 --- a/Game/Code/Screens/UScreenOptionsRecord.pas +++ b/Game/Code/Screens/UScreenOptionsRecord.pas @@ -384,6 +384,7 @@ var DeviceCfg: PInputDeviceConfig;
SelectSlide: TSelectSlide;
ToneBoxWidth: real;
+ Volume: single;
begin
DrawBG;
DrawFG;
@@ -434,22 +435,21 @@ begin glVertex2f(x2, y2);
glVertex2f(x1, y2);
+ Volume := PreviewChannel[ChannelIndex].MaxSampleVolume();
+
// coordinates for volume bar
x1 := x1 + 1;
- x2 := x1 + Trunc((SelectSlide.TextureSBG.W-4) *
- PreviewChannel[ChannelIndex].MaxSampleVolume()) + 1;
+ x2 := x1 + Trunc((SelectSlide.TextureSBG.W-4) * Volume) + 1;
y1 := y1 + 1;
y2 := y2 - 1;
// draw volume bar
glColor3f(RD, GD, BD);
glVertex2f(x1, y1);
- glColor3f(R, G, B);
- glVertex2f(x2, y1);
+ glVertex2f(x1, y2);
glColor3f(R, G, B);
glVertex2f(x2, y2);
- glColor3f(RD, GD, BD);
- glVertex2f(x1, y2);
+ glVertex2f(x2, y1);
//////////
// draw Pitch
|