Vis Microphone IOS help

Vis Microphone IOS help

PostPosted by jjdelorimier » Wed Jan 30, 2013 9:47 pm

Hi I just purchased visualizer studio and got all the basics down. I purchased it for use with IOS can you help explain how to modify the vis microphone script to work with ios mic. I left it on default and ran a test and it didn't work. I really appreciate the help. Thank you.

Joshua deLorimier
Posts: 1
Joined: Wed Jan 30, 2013 9:42 pm

Re: Vis Microphone IOS help

PostPosted by AlteredReality » Thu Jan 31, 2013 11:14 pm

I'm not exactly sure what the name of the microphone device is on iOS, so I'd recommend trying this...

In VisMicrophone.cs, change the following line of code from...

Code: Select all
audio.clip = Microphone.Start(Microphone.devices[index], true, 999, AudioSettings.outputSampleRate);


Code: Select all
audio.clip = Microphone.Start(Microphone.devices[0], true, 999, AudioSettings.outputSampleRate);

This will force it to use the first microphone device that Unity knows of. Let me know if that helps.
Andy - Altered Reality
Site Admin
Posts: 118
Joined: Fri Jan 06, 2012 8:31 pm

Return to Questions and Discussion

Who is online

Users browsing this forum: No registered users and 1 guest

Style by Gokinstudio | Free forum hosting by ProphpBB | Software by phpBB | Report Abuse | Privacy