Public Member Functions | |
MYMIDI (Common::SeekableReadStream *data, bool repeat) | |
void | poll () override |
void | seek (int pos) override |
void | seek_ms (int pos_ms) override |
int | get_pos () override |
int | get_pos_ms () override |
int | get_length_ms () override |
void | pause () override |
void | resume () override |
int | get_sound_type () const override |
int | play () override |
int | play_from (int position) override |
bool | is_playing () override |
bool | is_paused () override |
void | set_panning (int newPanning) override |
void | set_speed (int new_speed) override |
void | adjust_volume () override |
Public Member Functions inherited from AGS3::SOUNDCLIP | |
int | get_volume100 () const |
int | get_volume255 () const |
int | get_panning () const |
int | get_speed () const |
bool | is_muted () const |
void | set_volume100 (int volume) |
void | set_volume255 (int volume) |
void | set_volume_direct (int vol_percent, int vol_absolute) |
void | set_mute (bool mute) |
void | apply_volume_modifier (int mod) |
void | apply_directional_modifier (int mod) |
bool | is_ready () |
bool | update () |
Public Attributes | |
Audio::Mixer * | _mixer |
Common::SeekableReadStream * | _data |
int | lengthInSeconds |
SoundClipState | _state |
Public Attributes inherited from AGS3::SOUNDCLIP | |
int | _sourceClipID |
int | _sourceClipType |
bool | _repeat |
int | _priority |
int | _xSource |
int | _ySource |
int | _maximumPossibleDistanceAway |
int | _vol255 |
int | _vol100 |
int | _volModifier |
int | _panning |
int | _panningAsPercentage |
int | _directionalVolModifier |
Additional Inherited Members | |
Protected Member Functions inherited from AGS3::SOUNDCLIP | |
int | get_final_volume () const |
Protected Attributes inherited from AGS3::SOUNDCLIP | |
bool | _muted = false |
int | _speed = 0 |
bool | _paramsChanged = false |
|
overridevirtual |
Seeks to the position, where pos units depend on the audio type:
Implements AGS3::SOUNDCLIP.
|
overridevirtual |
Seeks to the position in milliseconds
Implements AGS3::SOUNDCLIP.
|
overridevirtual |
Return current position in frames
Implements AGS3::SOUNDCLIP.
|
overridevirtual |
Return the position in milliseconds
Implements AGS3::SOUNDCLIP.
|
overridevirtual |
Return total track length in ms (or 0)
Implements AGS3::SOUNDCLIP.
|
inlineoverridevirtual |
Get legacy sound format type
Implements AGS3::SOUNDCLIP.