<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: -",
    "macOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -",
    "watchOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFAudio",
  "identifier" : "/documentation/AVFAudio/AVAudioPCMBuffer/init(copying:)-875xm",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "AVFAudio"
    ],
    "preciseIdentifier" : "s:So16AVAudioPCMBufferC8AVFAudioE7copyingAbC015AVReadOnlyAudioB0V_tcfc"
  },
  "title" : "init(copying:)"
}
-->

# init(copying:)

Creates a mutable buffer by copying a read-only buffer’s audio data.

```
convenience init(copying readOnlyBuffer: AVReadOnlyAudioPCMBuffer)
```

## Parameters

`readOnlyBuffer`

The read-only buffer to copy from.

## Discussion

This initializer allocates a new mutable buffer and copies all audio data from the read-only buffer.

---

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)