using System;
using System
.
Text;
using System
.
Runtime
.
InteropServices;
namespace ffqlayDemo
;
[DllImport("ffqlay
.
dll")]
public
static extern int FFQLAY_start(int argc, [MarshalAs(UnmanagedType
.
LPArray, ArraySubType=UnmanagedType
.
LPStr)] IntPtr[] argv, IntPtr hwndParent, int width, int height);
[DllImport("ffqlay
.
dll")]
public
static extern int FFQLAY_pause();
[DllImport("ffqlay
.
dll")]
public
static extern int FFQLAY_stop();
[DllImport("ffqlay
.
dll")]
public
static extern
double
FFQLAY_get_duration();
[DllImport("ffqlay
.
dll")]
public
static extern
double
FFQLAY_get_position();
[DllImport("ffqlay
.
dll")]
public
static extern int FFQLAY_set_position(
double
position);
[DllImport("ffqlay
.
dll")]
public
static extern int FFQLAY_resize(int width, int height);
[DllImport("ffqlay
.
dll")]
public
static extern int FFQLAY_get_play_state();
[DllImport("ffqlay
.
dll")]
public
static extern int FFQLAY_get_volume();
[DllImport("ffqlay
.
dll")]
public
static extern int FFQLAY_set_volume(int volume);
public
static void FFQLAY_start(
string
fileName, IntPtr hwndParent, int width, int height)
}
}