iOS Developer Library

Developer

AV Foundation Framework Reference AVCaptureAudioChannel Class Reference

Options
Deployment Target:

On This Page
Language:

AVCaptureAudioChannel

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.

    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.

    Availability

    Available in iOS 4.0 and later.