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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user