Previous: 4.47.2.18. Next To the Table of Contents Next: 4.47.2.20. Pause
4.47.2.18. Next Table of Contents 4.47.2.20. Pause

- 4.47.2.19. -
Table of Contents
4. Standard Units
4.47. MMedia - Multimedia Devices support unit
4.47.2. TMMedia Object Methods
4.47.2.19. Open


4.47.2.19. Open

Targets: Win32 only


MMedia Unit

Opens a multimedia device and loads a given file.

Declaration:
  procedure Open(FileName: String);
Remarks: You must specify the multimedia devise using the SetDevice method before you call this method. If the current device is a CD audio device, you may specify an initial track number as a FileName parameter.

The following example will create a MyMedia object, open a CD audio device and set the current position to the fifth track:
uses
  MMedia;
var
  MyMedia: TMMedia;

begin
  MyMedia.Create(0);
  MyMedia.SetDevice(MCI_CDAudio);
  MyMedia.Open('5');
  ...
end.



Previous: 4.47.2.18. Next To the Table of Contents Next: 4.47.2.20. Pause
4.47.2.18. Next Table of Contents 4.47.2.20. Pause

- 4.47.2.19. -