| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- {========================================================================}
- {= (c) 1995-98 SwiftSoft Ronald Dittrich =}
- {========================================================================}
- {= All Rights Reserved =}
- {========================================================================}
- {= D 01099 Dresden = Fax.: +49 (0)351-8037944 =}
- {= Loewenstr.7a = info@swiftsoft.de =}
- {========================================================================}
- {= Actual versions on http://www.swiftsoft.de/mmtools.html =}
- {========================================================================}
- {= This code is for reference purposes only and may not be copied or =}
- {= distributed in any format electronic or otherwise except one copy =}
- {= for backup purposes. =}
- {= =}
- {= No Delphi Component Kit or Component individually or in a collection=}
- {= subclassed or otherwise from the code in this unit, or associated =}
- {= .pas, .dfm, .dcu, .asm or .obj files may be sold or distributed =}
- {= without express permission from SwiftSoft. =}
- {= =}
- {= For more licence informations please refer to the associated =}
- {= HelpFile. =}
- {========================================================================}
- {= $Date: 06.09.98 - 14:14:42 $ =}
- {========================================================================}
- unit fmMain;
- interface
- uses
- Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
- ComCtrls, MMMixer, MMObj, MMDesign, MPlayer, StdCtrls, MMSpin, ExtCtrls,
- MMPanel, MMMeter, MMSlider, MMMixCtl, MMDIBCv, MMLevel, Buttons, MMDevice,
- MMHook, MMCCon, MMUtils;
- type
- TForm1 = class(TForm)
- MMMixerDevice1: TMMMixerDevice;
- WaveLine: TMMAudioLine;
- MixPanel: TMMPanel;
- LineVolCtl: TMMMixerControl;
- MixerLineSlider: TMMMixerSlider;
- MMDeviceSpin1: TMMDeviceSpin;
- MMDesigner1: TMMDesigner;
- WaveLabel: TLabel;
- MMMixerLabelConnector3: TMMMixerLabelConnector;
- MMMixerLabelConnector4: TMMMixerLabelConnector;
- Button1: TButton;
- Button2: TButton;
- procedure Button1Click(Sender: TObject);
- procedure Button2Click(Sender: TObject);
- private
- { Private declarations }
- public
- { Public declarations }
- end;
- var
- Form1: TForm1;
- implementation
- {$R *.DFM}
- procedure TForm1.Button1Click(Sender: TObject);
- begin
- if WriteOk(LineVolCtl,NoItem) then
- with LineVolCtl do
- begin
- SetChannelSigned(chBoth,NoItem,ControlInfo.MinValue);
- end;
- end;
- procedure TForm1.Button2Click(Sender: TObject);
- begin
- if WriteOk(LineVolCtl,NoItem) then
- with LineVolCtl do
- begin
- SetChannelSigned(chBoth,NoItem,ControlInfo.MaxValue);
- end;
- end;
- end.
|