Method
Libopenmpt.ModuleGetNumChannels(IntPtr)

Summary

Syntax

[DllImport(DLL, EntryPoint = "openmpt_module_get_num_channels")]
public static extern int ModuleGetNumChannels(IntPtr mod)

Remarks

The number of pattern channels is completely independent of the number of output channels. libopenmpt can render modules in mono, stereo or quad surround, but the choice of which of the three modes to use must not be made based on the return value of this function, which may be any positive integer amount. Only use this function for informational purposes.

Attributes

Type Description
DllImportAttribute

Parameters

Name Type Description
mod IntPtr The module handle to work on.

Return Value

Type Description
int The number of pattern channels in the module. Not all channels do necessarily contain data.