Summary
A simple bindings class using Libopenmpt's C API.
https://lib.openmpt.org/doc/group__libopenmpt__c.html
Syntax
public static class Libopenmpt
Methods
Name | Return Value | Summary |
---|---|---|
FreeString |
void |
Free a string returned by libopenmpt.
static
|
GetCoreVersion |
int |
Get the core version number.
Return the OpenMPT core version number.
static
|
GetString |
IntPtr |
Get library related metadata.
static
|
Get |
IntPtr |
Get a list of supported file extensions.
static
|
IsExtensionSupported |
int |
Query whether a file extension is supported.
static
|
Module |
IntPtr |
Construct an openmpt_module.
static
|
ModuleCtlGetBoolean |
bool |
Get current ctl boolean value.
static
|
Module |
double |
Get current ctl floatingpoint value.
static
|
ModuleCtlGetInteger |
long |
Get current ctl integer value.
static
|
ModuleCtlGetText |
IntPtr |
Get current ctl string value.
static
|
ModuleCtlSetBoolean |
int |
Set ctl boolean value.
static
|
Module |
int |
Set ctl floatingpoint value.
static
|
ModuleCtlSetInteger |
int |
Set ctl integer value.
static
|
ModuleCtlSetText |
int |
Set ctl string value.
static
|
ModuleDestroy |
void |
Unload a previously created openmpt_module from memory.
static
|
Module |
double |
Get the current estimated beats per minute (BPM).
static
|
Module |
int |
Get the current order.
static
|
Module |
int |
Get the current pattern.
static
|
Module |
int |
Get the current amount of playing channels.
static
|
ModuleGetCurrentRow |
int |
Get the current row.
static
|
Module |
int |
Get the current speed.
static
|
Module |
int |
Get the current tempo (deprecated).
static
|
Module |
double |
Get the current tempo (recommended).
static
|
Module |
double |
approximate song duration
static
|
Module |
double |
Get an instrument name.
static
|
ModuleGetMetadata |
IntPtr |
Get a metadata item value.
static
|
Module |
IntPtr |
Get the list of supported metadata item keys.
static
|
ModuleGetNumChannels |
int |
Get the number of pattern channels.
static
|
Module |
int |
Get the number of instruments.
static
|
ModuleGetNumOrders |
int |
Get the number of orders.
static
|
ModuleGetNumPatterns |
int |
Get the number of patterns.
static
|
ModuleGetNumSamples |
int |
Get the number of samples.
static
|
ModuleGetNumSubsongs |
int |
Get the number of sub-songs.
static
|
ModuleGetOrderName |
IntPtr |
Get an order name.
static
|
Module |
int |
Get the pattern index at the specified order position.
static
|
ModuleGetPatternName |
IntPtr |
Get a pattern name.
static
|
Module |
int |
Get the number of rows in a pattern.
static
|
Module |
byte |
Get raw pattern content.
static
|
Module |
double |
Get current song position.
static
|
ModuleGetRenderParam |
int |
Get render parameter.
static
|
ModuleGetRepeatCount |
int |
Get Repeat Count.
static
|
Module |
int |
Get currently selected sub-song from a multi-song module.
static
|
ModuleGetSubsongName |
IntPtr |
Get a sub-song name.
static
|
ModuleReadFloatMono |
int |
Render audio data.
static
|
Module |
int |
static
|
Module |
int |
Render audio data.
static
|
Module |
int |
Render audio data.
static
|
ModuleReadMono |
int |
Render audio data.
static
|
ModuleReadMono |
int |
Render audio data.
static
|
ModuleReadQuad |
int |
Render audio data.
static
|
ModuleSelectSubsong |
int |
Select a sub-song from a multi-song module.
static
|
Module |
double |
Set approximate current song position
static
|
ModuleSetRenderParam |
int |
Set render parameter.
static
|
ModuleSetRepeatCount |
int |
Set the repeat count.
static
|