libopenmpt 0.8.0-pre.12+r22263
cross-platform C++ and C library to decode tracked music files
|
#include <libopenmpt/libopenmpt_ext.hpp>
Public Member Functions | |
virtual void | set_current_speed (std::int32_t speed)=0 |
Set the current ticks per row (speed) More... | |
virtual LIBOPENMPT_ATTR_DEPRECATED void | set_current_tempo (std::int32_t tempo)=0 |
Set the current module tempo. More... | |
virtual void | set_tempo_factor (double factor)=0 |
Set the current module tempo factor without affecting playback pitch. More... | |
virtual double | get_tempo_factor () const =0 |
Gets the current module tempo factor. More... | |
virtual void | set_pitch_factor (double factor)=0 |
Set the current module pitch factor without affecting playback speed. More... | |
virtual double | get_pitch_factor () const =0 |
Gets the current module pitch factor. More... | |
virtual void | set_global_volume (double volume)=0 |
Set the current global volume. More... | |
virtual double | get_global_volume () const =0 |
Get the current global volume. More... | |
virtual void | set_channel_volume (std::int32_t channel, double volume)=0 |
Set the current channel volume for a channel. More... | |
virtual double | get_channel_volume (std::int32_t channel) const =0 |
Get the current channel volume for a channel. More... | |
virtual void | set_channel_mute_status (std::int32_t channel, bool mute)=0 |
Set the current mute status for a channel. More... | |
virtual bool | get_channel_mute_status (std::int32_t channel) const =0 |
Get the current mute status for a channel. More... | |
virtual void | set_instrument_mute_status (std::int32_t instrument, bool mute)=0 |
Set the current mute status for an instrument. More... | |
virtual bool | get_instrument_mute_status (std::int32_t instrument) const =0 |
Get the current mute status for an instrument. More... | |
virtual std::int32_t | play_note (std::int32_t instrument, std::int32_t note, double volume, double panning)=0 |
Play a note using the specified instrument. More... | |
virtual void | stop_note (std::int32_t channel)=0 |
Stop the note playing on the specified channel. More... | |
Protected Member Functions | |
interactive () | |
virtual | ~interactive () |
|
inlineprotected |
|
inlineprotectedvirtual |
|
pure virtual |
Get the current mute status for a channel.
channel | The channel whose mute status should be retrieved, in range [0, openmpt::module::get_num_channels()[ |
openmpt::exception | Throws an exception derived from openmpt::exception if the channel is outside the specified range. |
|
pure virtual |
Get the current channel volume for a channel.
channel | The channel whose volume should be retrieved, in range [0, openmpt::module::get_num_channels()[ |
openmpt::exception | Throws an exception derived from openmpt::exception if the channel is outside the specified range. |
|
pure virtual |
Get the current global volume.
|
pure virtual |
Get the current mute status for an instrument.
instrument | The instrument whose mute status should be retrieved, in range [0, openmpt::module::get_num_instruments()[ if openmpt::module::get_num_instruments is not 0, otherwise in [0, openmpt::module::get_num_samples()[ |
openmpt::exception | Throws an exception derived from openmpt::exception if the instrument is outside the specified range. |
|
pure virtual |
Gets the current module pitch factor.
openmpt::exception | Throws an exception derived from openmpt::exception if the pitch is outside the specified range. |
|
pure virtual |
Gets the current module tempo factor.
|
pure virtual |
Play a note using the specified instrument.
instrument | The instrument that should be played, in range [0, openmpt::module::get_num_instruments()[ if openmpt::module::get_num_instruments is not 0, otherwise in [0, openmpt::module::get_num_samples()[ |
note | The note to play, in rage [0, 119]. 60 is the middle C. |
volume | The volume at which the note should be triggered, in range [0.0, 1.0] |
panning | The panning position at which the note should be triggered, in range [-1.0, 1.0], 0.0 is center. |
openmpt::exception | Throws an exception derived from openmpt::exception if the instrument or note is outside the specified range. |
|
pure virtual |
Set the current mute status for a channel.
channel | The channel whose mute status should be set, in range [0, openmpt::module::get_num_channels()[ |
mute | The new mute status. true is muted, false is unmuted. |
openmpt::exception | Throws an exception derived from openmpt::exception if the channel is outside the specified range. |
|
pure virtual |
Set the current channel volume for a channel.
channel | The channel whose volume should be set, in range [0, openmpt::module::get_num_channels()[ |
volume | The new channel volume in range [0.0, 1.0] |
openmpt::exception | Throws an exception derived from openmpt::exception if the channel or volume is outside the specified range. |
|
pure virtual |
Set the current ticks per row (speed)
speed | The new tick count in range [1, 65535]. |
openmpt::exception | Throws an exception derived from openmpt::exception if the speed is outside the specified range. |
|
pure virtual |
Set the current module tempo.
tempo | The new tempo in range [32, 512]. The exact meaning of the value depends on the tempo mode used by the module. |
openmpt::exception | Throws an exception derived from openmpt::exception if the tempo is outside the specified range. |
|
pure virtual |
Set the current global volume.
volume | The new global volume in range [0.0, 1.0] |
openmpt::exception | Throws an exception derived from openmpt::exception if the volume is outside the specified range. |
|
pure virtual |
Set the current mute status for an instrument.
instrument | The instrument whose mute status should be set, in range [0, openmpt::module::get_num_instruments()[ if openmpt::module::get_num_instruments is not 0, otherwise in [0, openmpt::module::get_num_samples()[ |
mute | The new mute status. true is muted, false is unmuted. |
openmpt::exception | Throws an exception derived from openmpt::exception if the instrument is outside the specified range. |
|
pure virtual |
Set the current module pitch factor without affecting playback speed.
factor | The new pitch factor in range ]0.0, 4.0] - 1.0 means unmodified pitch. |
openmpt::exception | Throws an exception derived from openmpt::exception if the factor is outside the specified range. |
n
semitones, the parameter can be calculated as follows: pow( 2.0, n / 12.0 )
|
pure virtual |
Set the current module tempo factor without affecting playback pitch.
factor | The new tempo factor in range ]0.0, 4.0] - 1.0 means unmodified tempo. |
openmpt::exception | Throws an exception derived from openmpt::exception if the factor is outside the specified range. |
|
pure virtual |
Stop the note playing on the specified channel.
channel | The channel on which the note should be stopped. This is the value returned by a previous play_note call. |
openmpt::exception | Throws an exception derived from openmpt::exception if the channel index is invalid. |