Class

AVSampleBufferAudioRenderer

An object used to decompress audio and play compressed or uncompressed audio.

Declaration

class AVSampleBufferAudioRenderer : NSObject

Overview

You must add an instance of this class to an AVSampleBufferRenderSynchronizer before queuing the first sample buffer.

Topics

Inspecting Sample Buffers

var audioOutputDeviceUniqueID: String?

The unique identifier of the output device used to play audio.

var volume: Float

The current audio volume for the audio renderer.

var isMuted: Bool

A Boolean value that indicates whether audio for the renderer is in a muted state.

var audioTimePitchAlgorithm: AVAudioTimePitchAlgorithm

The processing algorithm used to manage audio pitch at different rates.

struct AVAudioTimePitchAlgorithm

An algorithm used to set the audio pitch as the rate changes.

var status: AVQueuedSampleBufferRenderingStatus

The status of the audio renderer.

enum AVQueuedSampleBufferRenderingStatus

The statuses for sample buffer rendering.

Removing Queued Buffers

func flush(fromSourceTime: CMTime, completionHandler: (Bool) -> Void)

Flushes queued sample buffers with presentation time stamps later than or equal to the specified time.

Responding to Errors

var error: Error?

The error that caused the renderer to no longer render sample buffers.

See Also

Media Playback

class AVPlayer

An object that provides the interface to control the player’s transport behavior.

class AVQueuePlayer

A player used to play a number of items in sequence.

class AVPlayerLayer

An object that manages a player's visual output.

class AVPlayerItem

An object used to model the timing and presentation state of an asset played by the player.

class AVPlayerItemMetadataCollector

An object used to capture the date range metadata defined for an HTTP Live Streaming asset.

class AVPlayerItemTrack

An object used to modify the presentation state of an asset track being presented by a player.

class AVSynchronizedLayer

An object used to synchronize with a specific player item.

class AVPlayerMediaSelectionCriteria

An object that specifies the preferred languages and media characteristics for a player.

class AVSampleBufferDisplayLayer

An object that displays compressed or uncompressed video frames.

class AVSampleBufferRenderSynchronizer

An object used to synchronize multiple queued sample buffers to a single timeline.

class AVRouteDetector

An object that detects the presences of media playback routes.