Class
Libopenmpt

Summary

Syntax

public static class Libopenmpt

Methods

Name Return Value Summary
FreeString(IntPtr) void
Free a string returned by libopenmpt.
static
GetCoreVersion() int
Get the core version number. Return the OpenMPT core version number.
static
GetString(string) IntPtr
Get library related metadata.
static
GetSupportedExtensions() IntPtr
Get a list of supported file extensions.
static
IsExtensionSupported(string) int
Query whether a file extension is supported.
static
ModuleCreateFromMemory2(byte[], UIntPtr, Libopenmpt.LogFunc, IntPtr, Libopenmpt.ErrorFunc, IntPtr, IntPtr, IntPtr, IntPtr) IntPtr
Construct an openmpt_module.
static
ModuleCtlGetBoolean(IntPtr, string) bool
Get current ctl boolean value.
static
ModuleCtlGetFloatingPoint(IntPtr, string) double
Get current ctl floatingpoint value.
static
ModuleCtlGetInteger(IntPtr, string) long
Get current ctl integer value.
static
ModuleCtlGetText(IntPtr, string) IntPtr
Get current ctl string value.
static
ModuleCtlSetBoolean(IntPtr, string, bool) int
Set ctl boolean value.
static
ModuleCtlSetFloatingPoint(IntPtr, string, double) int
Set ctl floatingpoint value.
static
ModuleCtlSetInteger(IntPtr, string, long) int
Set ctl integer value.
static
ModuleCtlSetText(IntPtr, string, string) int
Set ctl string value.
static
ModuleDestroy(IntPtr) void
Unload a previously created openmpt_module from memory.
static
ModuleGetCurrentEstimatedBPM(IntPtr) double
Get the current estimated beats per minute (BPM).
static
ModuleGetCurrentOrder(IntPtr) int
Get the current order.
static
ModuleGetCurrentPattern(IntPtr) int
Get the current pattern.
static
ModuleGetCurrentPlayingChannels(IntPtr) int
Get the current amount of playing channels.
static
ModuleGetCurrentRow(IntPtr) int
Get the current row.
static
ModuleGetCurrentSpeed(IntPtr) int
Get the current speed.
static
ModuleGetCurrentTempo(IntPtr) int
Get the current tempo (deprecated).
static
ModuleGetCurrentTempo2(IntPtr) double
Get the current tempo (recommended).
static
ModuleGetDurationSeconds(IntPtr) double
approximate song duration
static
ModuleGetInstrumentName(IntPtr, int) double
Get an instrument name.
static
ModuleGetMetadata(IntPtr, string) IntPtr
Get a metadata item value.
static
ModuleGetMetadataKeys(IntPtr) IntPtr
Get the list of supported metadata item keys.
static
ModuleGetNumChannels(IntPtr) int
Get the number of pattern channels.
static
ModuleGetNumInstruments(IntPtr) int
Get the number of instruments.
static
ModuleGetNumOrders(IntPtr) int
Get the number of orders.
static
ModuleGetNumPatterns(IntPtr) int
Get the number of patterns.
static
ModuleGetNumSamples(IntPtr) int
Get the number of samples.
static
ModuleGetNumSubsongs(IntPtr) int
Get the number of sub-songs.
static
ModuleGetOrderName(IntPtr, int) IntPtr
Get an order name.
static
ModuleGetOrderPattern(IntPtr, int) int
Get the pattern index at the specified order position.
static
ModuleGetPatternName(IntPtr, int) IntPtr
Get a pattern name.
static
ModuleGetPatternNumRows(IntPtr, int) int
Get the number of rows in a pattern.
static
ModuleGetPatternRowChannelCommand(IntPtr, int, int, int, int) byte
Get raw pattern content.
static
ModuleGetPositionSeconds(IntPtr) double
Get current song position.
static
ModuleGetRenderParam(IntPtr, RenderParamIndices, int) int
Get render parameter.
static
ModuleGetRepeatCount(IntPtr) int
Get Repeat Count.
static
ModuleGetSelectedSubsong(IntPtr) int
Get currently selected sub-song from a multi-song module.
static
ModuleGetSubsongName(IntPtr, int) IntPtr
Get a sub-song name.
static
ModuleReadFloatMono(IntPtr, int, int, float[]) int
Render audio data.
static
ModuleReadFloatStereo(IntPtr, int, int, float[], float[]) int
static
ModuleReadInterleavedFloatQuad(IntPtr, int, int, float[]) int
Render audio data.
static
ModuleReadInterleavedFloatStereo(IntPtr, int, int, float[]) int
Render audio data.
static
ModuleReadMono(IntPtr, int, int, short[], short[]) int
Render audio data.
static
ModuleReadMono(IntPtr, int, int, short[]) int
Render audio data.
static
ModuleReadQuad(IntPtr, int, int, short[], short[], short[], short[]) int
Render audio data.
static
ModuleSelectSubsong(IntPtr, int) int
Select a sub-song from a multi-song module.
static
ModuleSetPositionSeconds(IntPtr, double) double
Set approximate current song position
static
ModuleSetRenderParam(IntPtr, RenderParamIndices, int) int
Set render parameter.
static
ModuleSetRepeatCount(IntPtr, int) int
Set the repeat count.
static