iOS Developer Library

Developer

AVFoundation Framework Reference AVCaptureAudioChannel Class Reference

Options
Deployment Target:

On This Page
Language:

AVCaptureAudioChannel

Inheritance


Conforms To


Import Statement


Swift

import AVFoundation

Objective-C

@import AVFoundation;

Availability


Available in iOS 4.0 and later.

You use an AVCaptureAudioChannel to monitor the average and peak power levels in an audio channel in a capture connection (see AVCaptureConnection).

An AVCaptureConnection object from an input producing audio to an output receiving audio exposes an array of AVCaptureAudioChannel objects, one for each channel of audio available. You can poll for audio levels by iterating through these audio channel objects.

You cannot create instances of AVCaptureAudioChannel directly.

  • The instantaneous average power level, in dB. (read-only)

    Declaration

    Swift

    var averagePowerLevel: Float { get }

    Objective-C

    @property(nonatomic, readonly) float averagePowerLevel

    Discussion

    This property is not key-value observable.

    Import Statement

    Objective-C

    @import AVFoundation;

    Swift

    import AVFoundation

    Availability

    Available in iOS 4.0 and later.

  • The peak hold power level, in dB. (read-only)

    Declaration

    Swift

    var peakHoldLevel: Float { get }

    Objective-C

    @property(nonatomic, readonly) float peakHoldLevel

    Discussion

    This property is not key-value observable.

    Import Statement

    Objective-C

    @import AVFoundation;

    Swift

    import AVFoundation

    Availability

    Available in iOS 4.0 and later.