# ConsumeSampleFrames(NativeArray<float>)

> Consume sample frames from the internal buffer.

## Definition

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

```csharp
public uint ConsumeSampleFrames(NativeArray<float> sampleFrames)
```

### Parameters

**** (\[NativeArray\<float>]\(/engine/6000.3/script-reference/unity/collections/nativearray1)): Buffer where the consumed samples will be transferred.

### Returns

| Type                                                         | Description                                                    |
| ------------------------------------------------------------ | -------------------------------------------------------------- |
| [uint](https://learn.microsoft.com/dotnet/api/system.uint32) | How many sample frames were written into the buffer passed in. |

### Remarks

If enableSilenacePadding is true, then the buffer passed in will be completely filled and padded with silence if there are less sample frames available than what the buffer can accommodate. Otherwise, the extra sample frames in the buffer will be left intact.
