Instance Property

meteringEnabled

A Boolean value that specifies the audio-level metering on/off state for the audio player.

Declaration

@property(getter=isMeteringEnabled) BOOL meteringEnabled;

Discussion

The default value for the meteringEnabled property is off (Boolean NO). Before using metering for an audio player, you need to enable it by setting this property to YES. If player is an audio player instance variable of your controller class, you enable metering as shown here:

[self.player setMeteringEnabled: YES];

See Also

Using Audio Level Metering

- averagePowerForChannel:

Returns the average power for a given channel, in decibels, for the sound being played.

- peakPowerForChannel:

Returns the peak power for a given channel, in decibels, for the sound being played.

- updateMeters

Refreshes the average and peak power values for all channels of an audio player.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software