Summary
Gets the module's number of samples based on the duration of the selected subsong, the given channel count and sample rate.
Syntax
public static int GetSampleCount(IntPtr mod, int sampleRate, ChannelCount channelCount)
Parameters
Name | Type | Description |
---|---|---|
mod | IntPtr | The module handle to work on. |
sampleRate | int | The audio sample rate. |
channelCount | ChannelCount | The number of audio channels. |
Return Value
Type | Description |
---|---|
int | The total number of samples. |