RigsofRods
Soft-body Physics Simulation
doc
angelscript
Script2Game
SoundClass.h
Go to the documentation of this file.
1
2
namespace
Script2Game
{
3
16
*/
17
class
SoundClass
18
{
19
public
:
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
();
31
float
getAudibility
();
32
float
getGain
();
33
float
getPitch
();
34
bool
getLoop
();
35
39
int
getCurrentHardwareIndex
();
40
uint
getBuffer
();
41
vector3
getPosition
();
42
vector3
getVelocity
();
43
47
int
getSourceIndex
();
48
}
49
52
53
}
//namespace Script2Game
Script2Game::SoundClass::getCurrentHardwareIndex
int getCurrentHardwareIndex()
this value is changed dynamically, depending on whether the input is played or not.
Script2Game::SoundClass
Binding of RoR::Sound; a single sound sample positioned in 3D space (spatial audio).
Definition:
SoundClass.h:17
Script2Game::SoundClass::stop
void stop()
Script2Game::SoundClass::play
void play()
Script2Game::SoundClass::getLoop
bool getLoop()
Script2Game
Pseudo-namespace; it doesn't exist in code or script runtime, only in this documentation.
Definition:
BeamClass.h:2
Script2Game::SoundClass::setPosition
void setPosition(vector3 pos)
Script2Game::SoundClass::getBuffer
uint getBuffer()
Script2Game::SoundClass::setLoop
void setLoop(bool loop)
Script2Game::SoundClass::getGain
float getGain()
Script2Game::SoundClass::getEnabled
bool getEnabled()
Script2Game::SoundClass::setEnabled
void setEnabled(bool e)
Script2Game::SoundClass::isPlaying
bool isPlaying()
Script2Game::SoundClass::getAudibility
float getAudibility()
Script2Game::SoundClass::setGain
void setGain(float gain)
Script2Game::SoundClass::getPosition
vector3 getPosition()
Script2Game::SoundClass::setPitch
void setPitch(float pitch)
Script2Game::SoundClass::getPitch
float getPitch()
Script2Game::SoundClass::getVelocity
vector3 getVelocity()
Script2Game::SoundClass::setVelocity
void setVelocity(vector3 vel)
Script2Game::SoundClass::getSourceIndex
int getSourceIndex()
must not be changed during the lifetime of this object.
loop
Then in your render loop
Definition:
README-OgreImGui.txt:62
Generated by
1.8.17