- Home /
Record in game Audio on android
Hi,
Im developing an applicaion for android related to sounds. But I have to record in game audio. Is there a way to do this? I dont need microphone functions. I need the game in audio (the output itself)
By the way, I have to record all of the audiolisteners in the application. Not only one... There are some solutions that records single source. But I have to record all of the audios. Im new at unity so I cannot handle this problem. But if I find out any solutions I will share here.
normally an audioListener will play (and record) all audioSources, so if you get data from an audioListener, you should have all audio data. Can you please share your solution, if you can solve this?
First of all thank you for your answers. But i think audacity may not work because this will run on android devices. But I will try getoutputdata method.
Answer by LEDWORKS · Apr 02, 2014 at 05:44 PM
I am not 100% sure if this is the best way, but You would have to basically create your own sound driver. Send your audio to that and record it before forwarding it to the sound card. This way you will not record audio from other applications that may be running.
Not a simple task.
Take a look at Audacity, free software that records internal sound by intercepting the signal to the sound card. Source code may be available as it is free to use.
Answer by koray1396 · Apr 02, 2014 at 06:23 PM
I have never used but looking at the script reference, there is a method; AudioListener.GetOutputData.
Also I again assume that you can assign this data to AudioClip by SetData.
And then you can play the AudioClip and see if it works.