RenderHeads / UnityPlugin-AVProMovieCapture

AVPro Movie Capture is a Unity Plugin for advanced video capture to AVI/MP4/MOV files
https://renderheads.com/products/avpro-movie-capture/
49 stars 8 forks source link

[Question] How to access audio buffer each frame while capturing using CaptureFromWebCamTexture with Microphone as audio source ? #435

Closed ebadier closed 3 weeks ago

ebadier commented 4 weeks ago

AVPro Movie Capture Version

5.2.4

Which platform is your question for?

Windows

Your question

How to access audio buffer each frame while capturing using CaptureFromWebCamTexture with Microphone as audio source ? I would like to playback the audio coming from my Webcam's mic while audio and video from my Webcam are recorded at the same time.

Thanks in advance for your help

ebadier commented 4 weeks ago

For now, I use this code to easily set the property "Listen to Device" in Windows Audio Input Settings from Unity. This seems to not add a delay in the recording compared to using Unity's Microphone API to listen to the microphone in realtime while recording with AVPro.

MorrisRH commented 3 weeks ago

There's currently no support for passing captured audio back up to unity from the plugin. If we did add support I think the latency introduced would be enough to cause a disconnect from the webcam feed. Your solution would seem to be the best option at this time.