---
title: flush()
framework: AVFoundation
role: symbol
role_heading: Instance Method
platforms: [iOS 11.0+, iPadOS 11.0+, Mac Catalyst 13.1+, macOS 10.13+, tvOS 11.0+, visionOS 1.0+, watchOS 4.0+]
path: avfoundation/avsamplebufferaudiorenderer/flush()
---

# flush()

Instructs the receiver to discard pending enqueued sample buffers.

## Declaration

```swift
func flush()
```

## Discussion

Discussion Additional sample buffers can be appended after -flush.
