---
title: "CopyNameFromSoundBank(_:_:)"
framework: audiotoolbox
role: symbol
role_heading: Function
path: "audiotoolbox/copynamefromsoundbank(_:_:)"
---

# CopyNameFromSoundBank(_:_:)

Copies the name of a sound bank from a sound bank file at a specified URL.

## Declaration

```swift
func CopyNameFromSoundBank(_ inURL: CFURL, _ outName: UnsafeMutablePointer<Unmanaged<CFString>?>) -> OSStatus
```

## Parameters

- `inURL`: A URL that points to the sound bank whose name you want to get.
- `outName`: The name of the sound bank.

## Return Value

Return Value A result code.

## See Also

### Instrument Functions

- [CopyInstrumentInfoFromSoundBank(_:_:)](audiotoolbox/copyinstrumentinfofromsoundbank(_:_:).md)
- [kInstrumentInfoKey_LSB](audiotoolbox/kinstrumentinfokey_lsb.md)
- [kInstrumentInfoKey_MSB](audiotoolbox/kinstrumentinfokey_msb.md)
- [kInstrumentInfoKey_Name](audiotoolbox/kinstrumentinfokey_name.md)
- [kInstrumentInfoKey_Program](audiotoolbox/kinstrumentinfokey_program.md)
