---
title: "send(audioBuffer:)"
framework: Immersive Media Support
role: symbol
role_heading: Instance Method
platforms: [macOS 26.0+]
path: "immersivemediasupport/immersivemediaremotepreviewsender/send(audiobuffer:)"
---

# send(audioBuffer:)

Sends an audio frame to all connected receivers.

## Declaration

```swift
func send(audioBuffer: CMSampleBuffer) async throws
```

## Parameters

- `audioBuffer`: The audio buffer to be sent to the receivers.

## Discussion

Discussion note: This function throws if anything fails while sending the audio data, for example, if the audio sample buffer has an invalid format or data.
