plumb URDF/SDF audio_source into PhysicsServerCommandProcessor, allow to play sounds on collision !
See also https://youtu.be/eppOjTfx5Jg for a first test, and this modified URDF how to add sounds: https://github.com/bulletphysics/bullet3/blob/master/data/plane_with_collision_audio.urdf Add the --audio flag to enable sound in pybullet/Bullet-C-API
This commit is contained in:
@@ -11,7 +11,7 @@ class b3ADSR
|
||||
double m_releaseRate;
|
||||
double m_releaseTime;
|
||||
double m_sustainLevel;
|
||||
|
||||
bool m_autoKeyOff;
|
||||
public:
|
||||
|
||||
b3ADSR();
|
||||
@@ -19,7 +19,7 @@ public:
|
||||
|
||||
double tick();
|
||||
bool isIdle() const;
|
||||
void keyOn();
|
||||
void keyOn(bool autoKeyOff);
|
||||
void keyOff();
|
||||
|
||||
void setValues(double attack,double decay,double sustain,double release)
|
||||
|
||||
Reference in New Issue
Block a user