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.

This commit is contained in:
Erwin Coumans
2017-04-29 10:32:30 -07:00
parent c95a1c9c33
commit 2a2c18e959
10 changed files with 196 additions and 9 deletions

View File

@@ -85,6 +85,10 @@ void b3ADSR::keyOn()
{
if (m_target <= 0.0)
m_target = 1.0;
if (m_attackRate==1)
{
m_value = 1.0;
}
m_state = ADSR_ATTACK;
}