Quantcast
Channel: Questions in topic: "il2cpp"
Viewing all articles
Browse latest Browse all 598

My App will carsh when I use Microphone and OnAudioFilterRead under IL2CPP

$
0
0
void Update () { if (Input.GetKeyDown (KeyCode.Mouse0)) { mySources = this.gameObject.GetComponent (); selectedDevice = Microphone.devices [0].ToString (); mySources.clip = Microphone.Start (null, true, 10, 16000); while (!(Microphone.GetPosition(selectedDevice) > 0)) { } mySources.Play (); } if (Input.GetKeyUp (KeyCode.Mouse0)) { AudioClip clip = mySources.clip; mySources.Stop (); Microphone.End (selectedDevice); } } void OnAudioFilterRead (float[] samples, int channel) { } Hi All. My App will crash (iOS) with this code when I select IL2CPP but when i Select Mono2x It is OK,How to solve the problem?Thanks.

Viewing all articles
Browse latest Browse all 598


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>