Code example for AtomicReference

Methods: set

0
  public void flush() { 
    micAudioList.clear();
  } 
 
  public void setMute(boolean updatedMuteSetting) {
    enableMute.set(updatedMuteSetting);
  } 
 
  public void muteAudio(AudioChunk chunk) {
    Arrays.fill(chunk.getChunk(), (short) 0);
  } 
}