ScummVM API documentation
AGS3::MYMIDI Struct Reference
Inheritance diagram for AGS3::MYMIDI:
AGS3::SOUNDCLIP

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
 

Member Function Documentation

◆ seek()

void AGS3::MYMIDI::seek ( int  offset)
overridevirtual

Seeks to the position, where pos units depend on the audio type:

  • MIDI - the beat number
  • MOD / XM / S3M - the pattern number
  • WAV / VOC - the sample number
  • OGG / MP3 - milliseconds

Implements AGS3::SOUNDCLIP.

◆ seek_ms()

void AGS3::MYMIDI::seek_ms ( int  pos_ms)
overridevirtual

Seeks to the position in milliseconds

Implements AGS3::SOUNDCLIP.

◆ get_pos()

int AGS3::MYMIDI::get_pos ( )
overridevirtual

Return current position in frames

Implements AGS3::SOUNDCLIP.

◆ get_pos_ms()

int AGS3::MYMIDI::get_pos_ms ( )
overridevirtual

Return the position in milliseconds

Implements AGS3::SOUNDCLIP.

◆ get_length_ms()

int AGS3::MYMIDI::get_length_ms ( )
overridevirtual

Return total track length in ms (or 0)

Implements AGS3::SOUNDCLIP.

◆ get_sound_type()

int AGS3::MYMIDI::get_sound_type ( ) const
inlineoverridevirtual

Get legacy sound format type

Implements AGS3::SOUNDCLIP.


The documentation for this struct was generated from the following file: