One Logo Pool Ball
AVFAudio · IOS API REFERENCE

AVAudioFile

class · iOS 8.0+ · SDK 27.1

class AVAudioFile

Members (18)

method · iOS 18.0+

close

TypeScript
close(): void
Swift declaration
func close()
init · iOS 8.0+ · Deprecated in iOS 26.0

init

TypeScript
static init(): AVAudioFile
Swift declaration
init()
init · iOS 8.0+

init

TypeScript
static initForReadingCommonFormatInterleaved(fileURL: string, format: AVAudioCommonFormat, interleaved: boolean): AVAudioFile
Swift declaration
init(forReading fileURL: URL, commonFormat format: AVAudioCommonFormat, interleaved: Bool) throws
init · iOS 8.0+

init

TypeScript
static initForReading(fileURL: string): AVAudioFile
Swift declaration
init(forReading fileURL: URL) throws
init · iOS 8.0+

init

TypeScript
static initForWritingSettingsCommonFormatInterleaved(fileURL: string, settings: Record<string, unknown>, format: AVAudioCommonFormat, interleaved: boolean): AVAudioFile
Swift declaration
init(forWriting fileURL: URL, settings: [String : Any], commonFormat format: AVAudioCommonFormat, interleaved: Bool) throws
init · iOS 8.0+

init

TypeScript
static initForWritingSettings(fileURL: string, settings: Record<string, unknown>): AVAudioFile
Swift declaration
init(forWriting fileURL: URL, settings: [String : Any]) throws
method · iOS 8.0+

read

TypeScript
readInto(buffer: AVAudioPCMBuffer): void
Swift declaration
func read(into buffer: AVAudioPCMBuffer) throws
method · iOS 8.0+

read

TypeScript
readIntoFrameCount(buffer: AVAudioPCMBuffer, frames: number): void
Swift declaration
func read(into buffer: AVAudioPCMBuffer, frameCount frames: AVAudioFrameCount) throws
method · iOS 8.0+

write

TypeScript
writeFrom(buffer: AVAudioPCMBuffer): void
Swift declaration
func write(from buffer: AVAudioPCMBuffer) throws
get · iOS 8.0+

fileFormat

TypeScript
get fileFormat(): AVAudioFormat
Swift declaration
var fileFormat: AVAudioFormat { get }
get · iOS 8.0+

framePosition

TypeScript
get framePosition(): number
Swift declaration
var framePosition: AVAudioFramePosition { get set }
set · iOS 8.0+

framePosition

TypeScript
set framePosition(value: number)
Swift declaration
var framePosition: AVAudioFramePosition { get set }
get · iOS 18.0+

isOpen

TypeScript
get isOpen(): boolean
Swift declaration
var isOpen: Bool { get }
get · iOS 8.0+

length

TypeScript
get length(): number
Swift declaration
var length: AVAudioFramePosition { get }
get · iOS 8.0+

processingFormat

TypeScript
get processingFormat(): AVAudioFormat
Swift declaration
var processingFormat: AVAudioFormat { get }
get · iOS 8.0+

url

TypeScript
get url(): string
Swift declaration
var url: URL { get }
method · iOS 27.0+

read

TypeScript
readFrameCount(frameCount: number): AVReadOnlyAudioPCMBuffer
Swift declaration
func read(frameCount: AVAudioFrameCount) throws -> AVReadOnlyAudioPCMBuffer
method · iOS 27.0+

write

TypeScript
writeFrom78254(buffer: AVReadOnlyAudioPCMBuffer): void
Swift declaration
func write(from buffer: AVReadOnlyAudioPCMBuffer) throws

Skipped declarations

No declarations were skipped in this snapshot.

All AVFAudio types →