![]() |
Rigs of Rods 2026.01
Soft-body Physics Simulation
|
Definition at line 238 of file SoundScriptManager.h.
Inheritance diagram for RoR::SoundScriptInstance:Public Member Functions | |
| SoundScriptInstance (int actor_id, SoundScriptTemplatePtr templ, SoundManager *sm, Ogre::String instancename, int soundLinkType=SL_DEFAULT, int soundLinkItemId=-1) | |
| virtual | ~SoundScriptInstance () override |
| void | runOnce () |
| void | setEnabled (bool e) |
| void | setGain (float value) |
| void | setPitch (float value) |
| void | setPosition (Ogre::Vector3 pos) |
| void | setVelocity (Ogre::Vector3 velo) |
| void | start () |
| void | stop () |
| void | kill () |
| SoundScriptTemplatePtr & | getTemplate () |
| const SoundPtr & | getStartSound () |
| const SoundPtr & | getStopSound () |
| const SoundPtr & | getSound (int pos) |
| float | getStartSoundPitchgain () |
| float | getStopSoundPitchgain () |
| float | getSoundPitchgain (int pos) |
| int | getActorInstanceId () |
| const Ogre::String & | getInstanceName () |
Public Member Functions inherited from RefCountingObject< SoundScriptInstance > | |
| RefCountingObject () | |
| virtual | ~RefCountingObject () |
| void | AddRef () |
| void | Release () |
Static Public Attributes | |
| static const float | PITCHDOWN_FADE_FACTOR = 3.0f |
| static const float | PITCHDOWN_CUTOFF_FACTOR = 5.0f |
| static const int | ACTOR_ID_UNKNOWN = -1 |
| static const int | ACTOR_ID_TERRAIN_OBJECT = -2 |
| static const SoundPtr | SOUNDPTR_NULL |
Private Member Functions | |
| float | pitchgain_cutoff (float sourcepitch, float targetpitch) |
Private Attributes | |
| Ogre::String | instance_name |
| SoundScriptTemplatePtr | templ |
| SoundManager * | sound_manager |
| SoundPtr | start_sound |
| SoundPtr | stop_sound |
| SoundPtr | sounds [MAX_SOUNDS_PER_SCRIPT] |
| float | start_sound_pitchgain |
| float | stop_sound_pitchgain |
| float | sounds_pitchgain [MAX_SOUNDS_PER_SCRIPT] |
| float | lastgain |
| int | actor_id |
| int | sound_link_type |
| int | sound_link_item_id |
Friends | |
| class | SoundScriptManager |
Additional Inherited Members | |
Static Public Member Functions inherited from RefCountingObject< SoundScriptInstance > | |
| static void | RegisterRefCountingObject (AS_NAMESPACE_QUALIFIER asIScriptEngine *engine, const char *name) |
| static void | RegisterRefCountingObjectGeneric (AS_NAMESPACE_QUALIFIER asIScriptEngine *engine, const char *name) |
| static void | AddRefGeneric (AS_NAMESPACE_QUALIFIER asIScriptGeneric *gen) |
| static void | ReleaseGeneric (AS_NAMESPACE_QUALIFIER asIScriptGeneric *gen) |
Data Fields inherited from RefCountingObject< SoundScriptInstance > | |
| int | m_refcount |
| std::mutex | m_refcount_mtx |
| SoundScriptInstance::SoundScriptInstance | ( | int | actor_id, |
| SoundScriptTemplatePtr | templ, | ||
| SoundManager * | sm, | ||
| Ogre::String | instancename, | ||
| int | soundLinkType = SL_DEFAULT, |
||
| int | soundLinkItemId = -1 |
||
| ) |
Definition at line 1097 of file SoundScriptManager.cpp.
|
inlineoverridevirtual |
Definition at line 245 of file SoundScriptManager.h.
|
inline |
Definition at line 264 of file SoundScriptManager.h.
|
inline |
Definition at line 265 of file SoundScriptManager.h.
|
inline |
Definition at line 260 of file SoundScriptManager.h.
|
inline |
Definition at line 263 of file SoundScriptManager.h.
|
inline |
Definition at line 258 of file SoundScriptManager.h.
|
inline |
Definition at line 261 of file SoundScriptManager.h.
|
inline |
Definition at line 259 of file SoundScriptManager.h.
|
inline |
Definition at line 262 of file SoundScriptManager.h.
|
inline |
Definition at line 257 of file SoundScriptManager.h.
| void SoundScriptInstance::kill | ( | ) |
Definition at line 1424 of file SoundScriptManager.cpp.
|
private |
Definition at line 1270 of file SoundScriptManager.cpp.
| void SoundScriptInstance::runOnce | ( | ) |
Definition at line 1356 of file SoundScriptManager.cpp.
| void SoundScriptInstance::setEnabled | ( | bool | e | ) |
Definition at line 1442 of file SoundScriptManager.cpp.
| void SoundScriptInstance::setGain | ( | float | value | ) |
Definition at line 1291 of file SoundScriptManager.cpp.
| void SoundScriptInstance::setPitch | ( | float | value | ) |
Definition at line 1132 of file SoundScriptManager.cpp.
| void SoundScriptInstance::setPosition | ( | Ogre::Vector3 | pos | ) |
Definition at line 1314 of file SoundScriptManager.cpp.
| void SoundScriptInstance::setVelocity | ( | Ogre::Vector3 | velo | ) |
Definition at line 1335 of file SoundScriptManager.cpp.
| void SoundScriptInstance::start | ( | ) |
Definition at line 1390 of file SoundScriptManager.cpp.
| void SoundScriptInstance::stop | ( | ) |
Definition at line 1409 of file SoundScriptManager.cpp.
|
friend |
Definition at line 240 of file SoundScriptManager.h.
|
private |
Definition at line 288 of file SoundScriptManager.h.
|
static |
Definition at line 270 of file SoundScriptManager.h.
|
static |
Definition at line 269 of file SoundScriptManager.h.
|
private |
Definition at line 277 of file SoundScriptManager.h.
|
private |
Definition at line 286 of file SoundScriptManager.h.
|
static |
Definition at line 268 of file SoundScriptManager.h.
|
static |
Definition at line 267 of file SoundScriptManager.h.
|
private |
Definition at line 290 of file SoundScriptManager.h.
|
private |
Definition at line 289 of file SoundScriptManager.h.
|
private |
Definition at line 279 of file SoundScriptManager.h.
|
static |
Definition at line 271 of file SoundScriptManager.h.
|
private |
Definition at line 282 of file SoundScriptManager.h.
|
private |
Definition at line 285 of file SoundScriptManager.h.
|
private |
Definition at line 280 of file SoundScriptManager.h.
|
private |
Definition at line 283 of file SoundScriptManager.h.
|
private |
Definition at line 281 of file SoundScriptManager.h.
|
private |
Definition at line 284 of file SoundScriptManager.h.
|
private |
Definition at line 278 of file SoundScriptManager.h.