-
Notifications
You must be signed in to change notification settings - Fork 0
/
MikModMedia.h
48 lines (42 loc) · 1.56 KB
/
MikModMedia.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
//---------------------------------------------------------------------------
#ifndef MikModMediaH
#define MikModMediaH
//---------------------------------------------------------------------------
#include <FMX.Media.hpp>
//---------------------------------------------------------------------------
class TMikMod;
/**
* Media class for TMikMod.
*/
class TMikModMedia : public Media::TMedia
{
typedef Media::TMedia inherited;
private:
TMikMod* FMikMod;
protected:
virtual __int64 __fastcall GetDuration(void);
virtual __int64 __fastcall GetCurrent(void);
virtual void __fastcall SetCurrent(const __int64 Value);
virtual System::Types::TPointF __fastcall GetVideoSize(void);
virtual TMediaState __fastcall GetMediaState(void);
virtual float __fastcall GetVolume(void);
virtual void __fastcall SetVolume(const float Value);
virtual void __fastcall UpdateMediaFromControl(void);
virtual void __fastcall DoPlay(void);
virtual void __fastcall DoStop(void);
public:
__fastcall virtual TMikModMedia(const System::UnicodeString AFileName);
__fastcall virtual ~TMikModMedia(void);
};
/**
* Media codec for TMikMod.
*/
class TMikModMediaCodec : public Media::TCustomMediaCodec
{
public:
inline __fastcall TMikModMediaCodec(void) : TCustomMediaCodec() { }
inline __fastcall virtual ~TMikModMediaCodec(void) { }
virtual TMedia* __fastcall CreateFromFile(const System::UnicodeString AFileName);
};
//---------------------------------------------------------------------------
#endif