we're trying to put the AntMedia Unity SDK into an Oculus project.
We made it working for audio-chat only, but we're currently having troubles on getting the microphone to communicate with the server.
After a lot of debugging we found out that the problem seems to be the AudioRenderer.
We tried working around it by using the default Microphone API from Unity, but with no result (the app crashes as it should start communicating with the server).
The code we tried is the following:
In the Render() functions
if (sora != null && !Recvonly && Microphone.IsRecording(audioRecordingDevice)) {
if (!audioSourceInput.isPlaying) audioSourceInput.Play();
If we was to use the AudioRenderer (as in the base file provided) what happens is that the microphones "disappear" from the system and therefore cannot be used by the app to send audio.
Question
Michele Castelletti
Hello everyone,
Has anyone actually made it?
Link to comment
Share on other sites
Top Posters For This Question
1
1
Popular Days
Jul 19
1
Jul 20
1
Top Posters For This Question
Michele Castelletti 1 post
Enes Kuluk 1 post
Popular Days
Jul 19 2021
1 post
Jul 20 2021
1 post
1 answer to this question
Recommended Posts