| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- {========================================================================}
- {= (c) 1995-98 SwiftSoft Ronald Dittrich =}
- {========================================================================}
- {= All Rights Reserved =}
- {========================================================================}
- {= D 01099 Dresden = Tel.: +0351-8012255 =}
- {= 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: 20.01.1998 - 18:00:00 $ =}
- {========================================================================}
- unit MMWPlay;
- {$I COMPILER.INC}
- interface
- uses
- {$IFDEF WIN32}
- Windows,
- {$ELSE}
- WinTypes,
- WinProcs,
- {$ENDIF}
- SysUtils,
- Classes,
- Controls,
- MMObj,
- MMDSPobj,
- MMUtils,
- MMWave,
- MMACMCvt,
- MMWavOut;
- type
- {-- TMMWavePlayer ---------------------------------------------------------}
- TMMWavePlayer = class(TMMDSPComponent)
- public
- constructor Create(aOwner: TComponent); override;
- destructor Destroy; override;
- procedure Play;
- procedure Stop;
- procedure Pause;
- procedure Restart;
- property PWaveFormat;
- property State: TMMWaveOutState read GetState;
- property Position: Longint read GetPosition write SetPosition;
- published
- property OnStart: TNotifyEvent read FOnStart write FOnStart;
- property OnStop: TNotifyEvent read FOnStop write FOnStop;
- property OnPause: TNotifyEvent read FOnPause write FOnPause;
- property OnRestart: TNotifyEvent read FOnRestart write FOnRestart;
- property OnChange: TNotifyEvent read FOnChange write FOnChange;
- property Output;
- property Wave: TMMWave read GetWave write SetWave;
- property BufferSize: Longint read GetBufferSize write SetBufferSize;
- property NumBuffers: integer read GetNumBuffers write SetNumBuffers;
- property DeviceID: TMMDeviceID read GetDeviceID write SetDeviceID;
- property ProductName: string read GetProductName write SetProductName stored False;
- property TimeFormat: TMMTimeFormats read GetTimeFormat write SetTimeFormat;
- property CallBackMode: TMMCBMode read GetCallBackMode write SetCallBackMode;
- property Looping: Boolean read GetLooping write SetLooping;
- property LoopCount: Word read GetLoopCount write SetLoopCount;
- property ResetPosition: Boolean read FResetPos write FResetPos default True;
- end;
- implementation
|