Commit Graph

13 Commits

Author SHA1 Message Date
erwincoumans
ab8f16961e Code-style consistency improvement:
Apply clang-format-all.sh using the _clang-format file through all the cpp/.h files.
make sure not to apply it to certain serialization structures, since some parser expects the * as part of the name, instead of type.
This commit contains no other changes aside from adding and applying clang-format-all.sh
2018-09-23 14:17:31 -07:00
Erwin Coumans
9fef6c1d66 Add C++ version VRGloveSimulatorMain example, using the serial library.
First run the App_PhysicsServer_SharedMemory_VR_vs2010.exe to run the VR server,
then run App_VRGloveHandSimulator. You likely need to tune the minV/maxV for each finger (check values using Arduino IDE Serial Monitor)
2017-05-01 22:35:33 -07:00
Erwin Coumans
af6bf8ddc8 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
2017-05-01 11:14:09 -07:00
Erwin Coumans
2a2c18e959 add more tinyaudio preparation, some test wav files, play sound on collision events. Will expose this in the C-API to pick wav files and collision threshold levels etc. Use the premake --audio flag to try it out. The TinyAudio example in the ExampleBrowser works on Mac, Linux and Windows, you can play notes by pressing keys. 2017-04-29 10:32:30 -07:00
Erwin Coumans
c95a1c9c33 add soft-clipping of mixed sounds using tanh
expose ADSR to TinyAudio API
enable envelope when playing wav files
2017-04-28 12:39:51 -07:00
Erwin Coumans
37a16f7e6b move work on TinyAudio. 2017-04-28 11:35:00 -07:00
Erwin Coumans
e6759cfa4f TinyAudio fixes for OSX etc. 2017-04-27 12:07:31 -07:00
Erwin Coumans
c51b22d6f5 remove verbose print's from ADSR code. 2017-04-27 08:42:28 -07:00
Erwin Coumans
dfc1800065 remove the goto's from the source code (came from http://github.com/thestk/stk toolkit)
add test wav file
2017-04-27 08:39:57 -07:00
erwincoumans
72d5366a92 Update b3WriteWavFile.h 2017-04-26 21:34:43 -07:00
Erwin Coumans
943dd16e78 disable keyboard repeat on Windows
add some TinyAudio classes to play wav, mostly from Stk (http://github.com/thestk/stk)
2017-04-26 21:31:01 -07:00
Erwin Coumans (google)
c2b80c562b fix TinyAudioExample 2017-04-14 19:33:52 +00:00
Erwin Coumans
eef76af663 create basic audio, towards sound sensors etc. 2017-04-14 12:22:38 -07:00