# SetSampleFramesOverflowNativeHandler(SampleFramesEventNativeFunction, nint)

> Set the native event handler for events emitted when the internal sample frame buffer overflows.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.Experimental.Audio](/engine/6000.5/script-reference/unityengine/experimental/audio.md)
* **Assembly:** UnityEngine.AudioModule

## SetSampleFramesOverflowNativeHandler(SampleFramesEventNativeFunction, IntPtr)

```csharp
public void SetSampleFramesOverflowNativeHandler(AudioSampleProvider.SampleFramesEventNativeFunction handler, nint userData)
```

### Parameters

**** (\[SampleFramesEventNativeFunction]\(/engine/6000.5/script-reference/unityengine/experimental/audio/audiosampleprovider/sampleframeseventnativefunction)): Pointer to the function to invoke when the event is emitted.**** (\[IntPtr]\(https\://learn.microsoft.com/dotnet/api/system.intptr)): User data to be passed to the handler when invoked. The actual C type is void\*.
