I was using AddGeneratorDelegate
in AudioCapture
but decided to try out to Use AudioCaptureComponent
instread and control lifetime in Blueprints and just pass in a reference to a class that can pick up the samples recorded.
When created my own AudioCapture
I subscribed to AddGeneratorDelegate
and recieved a chunk of samples, but I don’t see anything similar for AudioCaptureComponent
. There is OnAudioEnvelopeValue
which only gives me one sample and no SampleRate so even if I buffer a few samples it’s harder to know how many (or can I get sample rate somewhere?).
I was looking at
AUDIOMIXER_API void AddAudioBufferListener(IAudioBufferListener* InAudioBufferListener);
AUDIOMIXER_API void RemoveAudioBufferListener(IAudioBufferListener* InAudioBufferListener);
But they don’t seem to lead anywhere.
Or is there another way that I am not seeing?