<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: -",
    "macOS: 26.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVAssetWriterInput/SampleBufferReceiver/appendImmediately(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "s:So18AVAssetWriterInputC12AVFoundationE20SampleBufferReceiverC17appendImmediatelyySb9CoreMedia07CMReadyeF0VySo08CMSampleF3RefaAGE14DynamicContentOGKF"
  },
  "title" : "appendImmediately(_:)"
}
-->

# appendImmediately(_:)

Appends the sample buffer synchronously if the input is ready for more media data.

```
func appendImmediately(_ sampleBuffer: CMReadySampleBuffer<CMSampleBuffer.DynamicContent>) throws -> Bool
```

## Parameters

`sampleBuffer`

The sample buffer to be appended

## Return Value

Returns true if the append was successful, false if the input was not ready for more media data.

## Discussion> Throws: An error if the underlying writer failed.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)