|
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 |
|
|
virtual void | adjust_volume ()=0 |
|
int | get_final_volume () const |
|
|
bool | _muted = false |
|
int | _speed = 0 |
|
bool | _paramsChanged = false |
|
◆ seek()
virtual void AGS3::SOUNDCLIP::seek |
( |
int |
offset | ) |
|
|
pure virtual |
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
Implemented in AGS3::SoundClipWaveBase, and AGS3::MYMIDI.
◆ seek_ms()
virtual void AGS3::SOUNDCLIP::seek_ms |
( |
int |
pos_ms | ) |
|
|
pure virtual |
◆ get_sound_type()
virtual int AGS3::SOUNDCLIP::get_sound_type |
( |
| ) |
const |
|
pure virtual |
◆ get_pos()
virtual int AGS3::SOUNDCLIP::get_pos |
( |
| ) |
|
|
pure virtual |
◆ get_pos_ms()
virtual int AGS3::SOUNDCLIP::get_pos_ms |
( |
| ) |
|
|
pure virtual |
◆ get_length_ms()
virtual int AGS3::SOUNDCLIP::get_length_ms |
( |
| ) |
|
|
pure virtual |
◆ get_volume100()
int AGS3::SOUNDCLIP::get_volume100 |
( |
| ) |
const |
|
inline |
Gets clip's volume property, as percentage (0 - 100); note this may not be the real volume of playback (which could e.g. be muted)
◆ get_volume255()
int AGS3::SOUNDCLIP::get_volume255 |
( |
| ) |
const |
|
inline |
Gets clip's volume measured in 255 units
◆ get_panning()
int AGS3::SOUNDCLIP::get_panning |
( |
| ) |
const |
|
inline |
Gets clip's panning (-100 - +100)
◆ get_speed()
int AGS3::SOUNDCLIP::get_speed |
( |
| ) |
const |
|
inline |
Gets clip's playback speed in clip ms per real second
◆ is_muted()
bool AGS3::SOUNDCLIP::is_muted |
( |
| ) |
const |
|
inline |
Gets if clip is muted (without changing the volume setting)
◆ set_volume100()
void AGS3::SOUNDCLIP::set_volume100 |
( |
int |
volume | ) |
|
Sets the current volume property, as percentage (0 - 100)
◆ set_volume255()
void AGS3::SOUNDCLIP::set_volume255 |
( |
int |
volume | ) |
|
Sets the current volume property, as a level (0 - 255)
◆ set_volume_direct()
void AGS3::SOUNDCLIP::set_volume_direct |
( |
int |
vol_percent, |
|
|
int |
vol_absolute |
|
) |
| |
Explicitly defines both percentage and absolute volume value, without calculating it from given percentage. NOTE: this overrides the mute
◆ set_mute()
void AGS3::SOUNDCLIP::set_mute |
( |
bool |
mute | ) |
|
Mutes sound clip, while preserving current volume property for the future reference; when unmuted, that property is used to restart previous volume.
◆ apply_volume_modifier()
void AGS3::SOUNDCLIP::apply_volume_modifier |
( |
int |
mod | ) |
|
Apply arbitrary permanent volume modifier, in absolute units (0 - 255); this is distinct value that is used in conjunction with current volume (can be both positive and negative).
◆ apply_directional_modifier()
void AGS3::SOUNDCLIP::apply_directional_modifier |
( |
int |
mod | ) |
|
Apply permanent directional volume modifier, in absolute units (0 - 255) this is distinct value that is used in conjunction with current volume (can be both positive and negative).
◆ update()
bool AGS3::SOUNDCLIP::update |
( |
| ) |
|
Returns if the clip is still playing, otherwise it's finished
The documentation for this struct was generated from the following file: