public int sound_level ; public void sound_analize() { if (sound_level ==0;) //no sound {do something; } if (sound_level == 50)//low sound {do something; } if (sound_level = 100)//meduim sound level {do something else; } if (sound_level = 200)//loud sound {do something else; } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)