Rigs of Rods 2023.09
Soft-body Physics Simulation
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Loading...
Searching...
No Matches
SoundClass.h
Go to the documentation of this file.
1
2namespace Script2Game {
3
16 */
18{
19public:
20 void setPitch(float pitch);
21 void setGain(float gain);
22 void setPosition(vector3 pos);
23 void setVelocity(vector3 vel);
24 void setLoop(bool loop);
25 void setEnabled(bool e);
26 void play();
27 void stop();
28
29 bool getEnabled();
30 bool isPlaying();
32 float getGain();
33 float getPitch();
34 bool getLoop();
35
40 uint getBuffer();
41 vector3 getPosition();
42 vector3 getVelocity();
43
48}
49
52
53} //namespace Script2Game
Binding of RoR::Sound; a single sound sample positioned in 3D space (spatial audio).
Definition SoundClass.h:18
void setLoop(bool loop)
void setPosition(vector3 pos)
void setGain(float gain)
int getSourceIndex()
must not be changed during the lifetime of this object.
void setVelocity(vector3 vel)
int getCurrentHardwareIndex()
this value is changed dynamically, depending on whether the input is played or not.
void setPitch(float pitch)
Pseudo-namespace; it doesn't exist in code or script runtime, only in this documentation.