| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798 |
- {========================================================================}
- {= (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 MMCDInfo;
- {$I COMPILER.INC}
- interface
- uses
- {$IFDEF WIN32}
- Windows,
- {$ELSE}
- WinTypes,
- WinProcs,
- {$ENDIF}
- SysUtils,
- Messages,
- Classes,
- Graphics,
- Controls,
- ExtCtrls,
- Forms,
- Dialogs,
- IniFiles,
- MMSystem,
- MPlayer,
- MMObj,
- MMUtils;
- type
- TMMCDInfoStr = String[49];
- PMMCDInfoOrder = ^TMMCDInfoOrder;
- TMMCDInfoOrder = array[0..0] of Byte;
- {-- TMMCDInfo ----------------------------------------------------------}
- TMMCDInfo = class(TMMComponent)
- public
- constructor Create(AOwner:TComponent); override;
- destructor Destroy; override;
- procedure SaveInfo;
- property DiscID: String read FDisc_ID;
- property Artist: TMMCDInfoStr read GetArtist write SetArtist;
- property Title: TMMCDInfoStr read GetTitle write SetTitle;
- property Tracks: TStrings read GetTracks write SetTracks;
- property NumTracks: Byte read FNumTracks;
- property NumPlay: Byte read GetNumPlay write SetNumPlay;
- property PlayOrder[Position: Byte]: Byte read GetPlayOrder write SetPlayOrder;
- property Numdevs: integer read FNumdevs;
- published
- { Events }
- property OnTimer : TNotifyEvent read FOnTimer write FOnTimer;
- property OnReady : TNotifyEvent read FOnReady write FOnReady;
- property OnDoorOpen : TNotifyEvent read FOnDoorOpen write FOnDoorOpen;
- property OnDoorClose: TNotifyEvent read FOnDoorClose write FOnDoorClose;
- property Enabled: Boolean read FEnabled write SetEnabled default True;
- property Interval: integer read FInterval write SetInterval default 500;
- property Player: TMediaPlayer read FPlayer write FPlayer;
- property IniFile: TFileName read FIniFileName write SetIniFileName;
- property ProductName: String read FProductName write SetProductName stored False;
- end;
- function MSFToFrames(MSF: Longint): Longint;
- function TMSF2Second(aTMSF: Longint): Longint;
- function MSF2Second(aMSF: Longint): Longint;
- (*function CDAudioGetNumDevs: integer;
- function CDAudioGetDeviceName(DeviceID: Integer): String;
- function CDAudioGetInstallName(DeviceID: integer): String;
- function CDAudioGetProductName(DeviceID: integer): String;*)
- implementation
|