# Generator delegate option in AudioCaptureComponent similar to AudioCapture

**URL:** <https://forums.unrealengine.com/t/generator-delegate-option-in-audiocapturecomponent-similar-to-audiocapture/2135806>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, question\
**Created:** [November 19, 2024, 6:35pm UTC](https://forums.unrealengine.com/t/generator-delegate-option-in-audiocapturecomponent-similar-to-audiocapture/2135806 "2024-11-19T18:35:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![munger](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@munger](https://forums.unrealengine.com/u/munger)\
**Post date:** [November 19, 2024, 6:35pm UTC](https://forums.unrealengine.com/t/generator-delegate-option-in-audiocapturecomponent-similar-to-audiocapture/2135806/1 "2024-11-19T18:35:22Z")

</div>

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

```auto
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?
