public int Read(float[] buffer, int offset, int count) { // Use mono and the backing stream is not in mono already // If the stream is already mono, dont waste time and cpu converting it again if (UseMono == true && BackingSampleProvider.WaveFormat.Channels != 1) { return(MonoProvider.Read(buffer, offset, count)); } // Dont use mono and the backing stream is not in stereo already // Again, if the stream is already stereo, dont waste resources converting else if (UseMono == false && BackingSampleProvider.WaveFormat.Channels != 2) { return(StereoProvider.Read(buffer, offset, count)); } else // Use the normal stream { return(BackingSampleProvider.Read(buffer, offset, count)); } }
public void FindGame() { MonoProvider.StartCoroutine(FindGameEnum()); }