Interface IVorbisPlayerModuleHandle
OGG Vorbis player.
public interface IVorbisPlayerModuleHandle : ITypedModuleHandle, IGenericSynthModuleHandle
- Inherited Members
Methods
GetAudioFineTune(ValueScalingMode)
Value range: displayed: -128 to 128, real: -128 to 128 Original name: 2 'Finetune'
int GetAudioFineTune(ValueScalingMode valueScalingMode = ValueScalingMode.Displayed)
Parameters
valueScalingModeValueScalingMode
Returns
- int
GetAudioTranspose(ValueScalingMode)
Original name: 3 'Transpose'
int GetAudioTranspose(ValueScalingMode valueScalingMode = ValueScalingMode.Displayed)
Parameters
valueScalingModeValueScalingMode
Returns
- int
GetIgnoreNoteOff()
Original name: 7 'Ignore Note OFF'
Toggle GetIgnoreNoteOff()
Returns
GetInterpolation()
Original name: 4 'Interpolation'
Toggle GetInterpolation()
Returns
GetOriginalSpeed()
Original name: 1 'Original speed'
Toggle GetOriginalSpeed()
Returns
GetPolyphony(ValueScalingMode)
Original name: 5 'Polyphony'
int GetPolyphony(ValueScalingMode valueScalingMode = ValueScalingMode.Displayed)
Parameters
valueScalingModeValueScalingMode
Returns
- int
GetRepeat()
Original name: 6 'Repeat'
Toggle GetRepeat()
Returns
GetVolume(ValueScalingMode)
Value range: displayed: 0 to 512, real: 0 to 512 Original name: 0 'Volume'
int GetVolume(ValueScalingMode valueScalingMode = ValueScalingMode.Displayed)
Parameters
valueScalingModeValueScalingMode
Returns
- int
LoadAudio(byte[])
Load a file into the Vorbis Player. Supported file formats: ogg.
void LoadAudio(byte[] data)
Parameters
databyte[]Byte array with audio file data.
Remarks
Exceptions
- SunVoxException
Thrown when the operation fails.
- ArgumentNullException
Thrown if
datais null.
LoadAudio(string)
Load a file into the Vorbis Player. Supported file formats: ogg.
void LoadAudio(string path)
Parameters
pathstringFile path (relative or absolute).
Remarks
Exceptions
- SunVoxException
Thrown when the operation fails.
- ArgumentNullException
Thrown if
pathis null.
MakeAudioFineTuneEvent(int)
This is a helper method to automatically handle turning target controller values into column values.
For this controller the input value is mapped from displayed range (-128 to 128) to column range (0 to 0x8000). Out of range values are clamped.
PatternEvent MakeAudioFineTuneEvent(int value)
Parameters
valueint
Returns
MakeAudioTransposeEvent(int)
This is a helper method to automatically handle turning target controller values into column values.
For this controller the input value is taken as is, only clamped to column value range.
PatternEvent MakeAudioTransposeEvent(int value)
Parameters
valueint
Returns
MakeIgnoreNoteOffEvent(Toggle)
This is a helper method to automatically handle turning target controller values into column values.
For this controller the input value is taken as is, only clamped to column value range.
PatternEvent MakeIgnoreNoteOffEvent(Toggle value)
Parameters
valueToggle
Returns
MakeInterpolationEvent(Toggle)
This is a helper method to automatically handle turning target controller values into column values.
For this controller the input value is taken as is, only clamped to column value range.
PatternEvent MakeInterpolationEvent(Toggle value)
Parameters
valueToggle
Returns
MakeOriginalSpeedEvent(Toggle)
This is a helper method to automatically handle turning target controller values into column values.
For this controller the input value is taken as is, only clamped to column value range.
PatternEvent MakeOriginalSpeedEvent(Toggle value)
Parameters
valueToggle
Returns
MakePolyphonyEvent(int)
This is a helper method to automatically handle turning target controller values into column values.
For this controller the input value is taken as is, only clamped to column value range.
PatternEvent MakePolyphonyEvent(int value)
Parameters
valueint
Returns
MakeRepeatEvent(Toggle)
This is a helper method to automatically handle turning target controller values into column values.
For this controller the input value is taken as is, only clamped to column value range.
PatternEvent MakeRepeatEvent(Toggle value)
Parameters
valueToggle
Returns
MakeVolumeEvent(int)
This is a helper method to automatically handle turning target controller values into column values.
For this controller the input value is mapped from displayed range (0 to 512) to column range (0 to 0x8000). Out of range values are clamped.
PatternEvent MakeVolumeEvent(int value)
Parameters
valueint
Returns
SetAudioFineTune(int, ValueScalingMode)
Value range: displayed: -128 to 128, real: -128 to 128 Original name: 2 'Finetune' Note: equivalent SendEvent(int, PatternEvent) will be used internally, which may introduce latency. It will also be affected by the event timestamp set.
void SetAudioFineTune(int value, ValueScalingMode valueScalingMode = ValueScalingMode.Displayed)
Parameters
valueintvalueScalingModeValueScalingMode
SetAudioTranspose(int, ValueScalingMode)
Original name: 3 'Transpose' Note: equivalent SendEvent(int, PatternEvent) will be used internally, which may introduce latency. It will also be affected by the event timestamp set.
void SetAudioTranspose(int value, ValueScalingMode valueScalingMode = ValueScalingMode.Displayed)
Parameters
valueintvalueScalingModeValueScalingMode
SetIgnoreNoteOff(Toggle)
Original name: 7 'Ignore Note OFF' Note: equivalent SendEvent(int, PatternEvent) will be used internally, which may introduce latency. It will also be affected by the event timestamp set.
void SetIgnoreNoteOff(Toggle value)
Parameters
valueToggle
SetInterpolation(Toggle)
Original name: 4 'Interpolation' Note: equivalent SendEvent(int, PatternEvent) will be used internally, which may introduce latency. It will also be affected by the event timestamp set.
void SetInterpolation(Toggle value)
Parameters
valueToggle
SetOriginalSpeed(Toggle)
Original name: 1 'Original speed' Note: equivalent SendEvent(int, PatternEvent) will be used internally, which may introduce latency. It will also be affected by the event timestamp set.
void SetOriginalSpeed(Toggle value)
Parameters
valueToggle
SetPolyphony(int, ValueScalingMode)
Original name: 5 'Polyphony' Note: equivalent SendEvent(int, PatternEvent) will be used internally, which may introduce latency. It will also be affected by the event timestamp set.
void SetPolyphony(int value, ValueScalingMode valueScalingMode = ValueScalingMode.Displayed)
Parameters
valueintvalueScalingModeValueScalingMode
SetRepeat(Toggle)
Original name: 6 'Repeat' Note: equivalent SendEvent(int, PatternEvent) will be used internally, which may introduce latency. It will also be affected by the event timestamp set.
void SetRepeat(Toggle value)
Parameters
valueToggle
SetVolume(int, ValueScalingMode)
Value range: displayed: 0 to 512, real: 0 to 512 Original name: 0 'Volume' Note: equivalent SendEvent(int, PatternEvent) will be used internally, which may introduce latency. It will also be affected by the event timestamp set.
void SetVolume(int value, ValueScalingMode valueScalingMode = ValueScalingMode.Displayed)
Parameters
valueintvalueScalingModeValueScalingMode