fmMain.pas 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. {========================================================================}
  2. {= (c) 1995-98 SwiftSoft Ronald Dittrich =}
  3. {========================================================================}
  4. {= All Rights Reserved =}
  5. {========================================================================}
  6. {= D 01099 Dresden = Fax.: +49 (0)351-8037944 =}
  7. {= Loewenstr.7a = info@swiftsoft.de =}
  8. {========================================================================}
  9. {= Actual versions on http://www.swiftsoft.de/mmtools.html =}
  10. {========================================================================}
  11. {= This code is for reference purposes only and may not be copied or =}
  12. {= distributed in any format electronic or otherwise except one copy =}
  13. {= for backup purposes. =}
  14. {= =}
  15. {= No Delphi Component Kit or Component individually or in a collection=}
  16. {= subclassed or otherwise from the code in this unit, or associated =}
  17. {= .pas, .dfm, .dcu, .asm or .obj files may be sold or distributed =}
  18. {= without express permission from SwiftSoft. =}
  19. {= =}
  20. {= For more licence informations please refer to the associated =}
  21. {= HelpFile. =}
  22. {========================================================================}
  23. {= $Date: 06.09.98 - 14:14:42 $ =}
  24. {========================================================================}
  25. unit fmMain;
  26. interface
  27. uses
  28. Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
  29. ComCtrls, MMMixer, MMObj, MMDesign, MPlayer, StdCtrls, MMSpin, ExtCtrls,
  30. MMPanel, MMMeter, MMSlider, MMMixCtl, MMDIBCv, MMLevel, Buttons, MMDevice,
  31. MMHook, MMCCon, MMUtils;
  32. type
  33. TForm1 = class(TForm)
  34. MMMixerDevice1: TMMMixerDevice;
  35. WaveLine: TMMAudioLine;
  36. MixPanel: TMMPanel;
  37. LineVolCtl: TMMMixerControl;
  38. MixerLineSlider: TMMMixerSlider;
  39. MMDeviceSpin1: TMMDeviceSpin;
  40. MMDesigner1: TMMDesigner;
  41. WaveLabel: TLabel;
  42. MMMixerLabelConnector3: TMMMixerLabelConnector;
  43. MMMixerLabelConnector4: TMMMixerLabelConnector;
  44. Button1: TButton;
  45. Button2: TButton;
  46. procedure Button1Click(Sender: TObject);
  47. procedure Button2Click(Sender: TObject);
  48. private
  49. { Private declarations }
  50. public
  51. { Public declarations }
  52. end;
  53. var
  54. Form1: TForm1;
  55. implementation
  56. {$R *.DFM}
  57. procedure TForm1.Button1Click(Sender: TObject);
  58. begin
  59. if WriteOk(LineVolCtl,NoItem) then
  60. with LineVolCtl do
  61. begin
  62. SetChannelSigned(chBoth,NoItem,ControlInfo.MinValue);
  63. end;
  64. end;
  65. procedure TForm1.Button2Click(Sender: TObject);
  66. begin
  67. if WriteOk(LineVolCtl,NoItem) then
  68. with LineVolCtl do
  69. begin
  70. SetChannelSigned(chBoth,NoItem,ControlInfo.MaxValue);
  71. end;
  72. end;
  73. end.