Exemple #1
0
 public void mute(boolean m) {
   if (m) {
     volume = sound_src.getGain();
     sound_src.setGain(0);
   } else {
     sound_src.setGain(volume);
   }
 }
Exemple #2
0
 public void setVolume(float v) {
   volume = v * gain;
   sound_src.setGain(volume);
 }