- Home /
Question by
henriettejenssen · Oct 16, 2013 at 05:52 PM ·
audiomicrophone
Can I make the signal from Microphone into a 3D sound in real time?
With good help from the Microphone script reference, I can now play audio from a microphone real time inside the engine. Here comes the example code I am using in Javascript:
audio.clip = Microphone.Start(null, true, 10, 44100);
while(!(Microphone.GetPosition(null) > 0)) {
}
audio.Play();
audio.mute=false;
The only problem is that the audio plays as a 2D sound. Instead, I want to make the audio play from an object inside my scene as a 3D sound in realtime. Is this even possible?
I have been experimenting with AudioImporter(threeD : true), but without any success so far.
Comment