r/howdidtheycodeit • u/AWESOM-OMG • Dec 25 '22
Question How do some games catch realtime audio?
Coding un Unity3d and wondering how to get realtime microphone audio and realtime desktop audio to get an audioclip of both to reproduce It lately on the game. (Part of a mind blowing 4th wall breaker puzzle no need to explain that now xD)
Would appreciate any help!
19
Upvotes
25
u/FrenklanRusvelti Dec 26 '22
Whats your plan for people without microphones?
Also, recording people and storing their recordings to memory sounds like, a not great idea unless it’s super explicitly known
48
u/Dracon270 Dec 25 '22
Be careful doing something like that. If it's not known, it may have a seriously negative response with people thinking you're spying on them.
7
u/tayusuki Dec 25 '22
There’s a Microphone class that should be able to take care of that.