MMCDINFO.INT 3.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. {========================================================================}
  2. {= (c) 1995-98 SwiftSoft Ronald Dittrich =}
  3. {========================================================================}
  4. {= All Rights Reserved =}
  5. {========================================================================}
  6. {= D 01099 Dresden = Tel.: +0351-8012255 =}
  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: 20.01.1998 - 18:00:00 $ =}
  24. {========================================================================}
  25. unit MMCDInfo;
  26. {$I COMPILER.INC}
  27. interface
  28. uses
  29. {$IFDEF WIN32}
  30. Windows,
  31. {$ELSE}
  32. WinTypes,
  33. WinProcs,
  34. {$ENDIF}
  35. SysUtils,
  36. Messages,
  37. Classes,
  38. Graphics,
  39. Controls,
  40. ExtCtrls,
  41. Forms,
  42. Dialogs,
  43. IniFiles,
  44. MMSystem,
  45. MPlayer,
  46. MMObj,
  47. MMUtils;
  48. type
  49. TMMCDInfoStr = String[49];
  50. PMMCDInfoOrder = ^TMMCDInfoOrder;
  51. TMMCDInfoOrder = array[0..0] of Byte;
  52. {-- TMMCDInfo ----------------------------------------------------------}
  53. TMMCDInfo = class(TMMComponent)
  54. public
  55. constructor Create(AOwner:TComponent); override;
  56. destructor Destroy; override;
  57. procedure SaveInfo;
  58. property DiscID: String read FDisc_ID;
  59. property Artist: TMMCDInfoStr read GetArtist write SetArtist;
  60. property Title: TMMCDInfoStr read GetTitle write SetTitle;
  61. property Tracks: TStrings read GetTracks write SetTracks;
  62. property NumTracks: Byte read FNumTracks;
  63. property NumPlay: Byte read GetNumPlay write SetNumPlay;
  64. property PlayOrder[Position: Byte]: Byte read GetPlayOrder write SetPlayOrder;
  65. property Numdevs: integer read FNumdevs;
  66. published
  67. { Events }
  68. property OnTimer : TNotifyEvent read FOnTimer write FOnTimer;
  69. property OnReady : TNotifyEvent read FOnReady write FOnReady;
  70. property OnDoorOpen : TNotifyEvent read FOnDoorOpen write FOnDoorOpen;
  71. property OnDoorClose: TNotifyEvent read FOnDoorClose write FOnDoorClose;
  72. property Enabled: Boolean read FEnabled write SetEnabled default True;
  73. property Interval: integer read FInterval write SetInterval default 500;
  74. property Player: TMediaPlayer read FPlayer write FPlayer;
  75. property IniFile: TFileName read FIniFileName write SetIniFileName;
  76. property ProductName: String read FProductName write SetProductName stored False;
  77. end;
  78. function MSFToFrames(MSF: Longint): Longint;
  79. function TMSF2Second(aTMSF: Longint): Longint;
  80. function MSF2Second(aMSF: Longint): Longint;
  81. (*function CDAudioGetNumDevs: integer;
  82. function CDAudioGetDeviceName(DeviceID: Integer): String;
  83. function CDAudioGetInstallName(DeviceID: integer): String;
  84. function CDAudioGetProductName(DeviceID: integer): String;*)
  85. implementation