- Home /
Double microphone reading data
Hello guys.
I am making an application in Unity and in this application I use an android library (external) to grab input from mic. But - I want to make a visualizer based on the spectrum data of the mic IN Unity. Well, when visualizer gets the data, android library doesnt work. Maybe library cant grab a mic if mic is already occupied. Is there any other way that I can get these data? Thank you in advance.
Answer by LEDWORKS · Jul 05, 2018 at 01:20 PM
You said yourself your already pulling the mic data, just push it to the visualization API, don't record it twice
Thank you for your answer. I thought about that but it seems impossible. I mean... how can I send data from Java library to C# script? Plus - this operation would create a massive overhead and decrease performance! Correct?
not correct at all, you already have the data in memory, its already cost you resources to record. The language your APIs are using is irrelivent as audio data is in a standardised format. By passing your data into a function directly you are just indexing a chunk of RA$$anonymous$$ which costs nothing