IOAudioDevice.h Reference

Declared in
IOAudioDevice.h

Overview

Included Headers

  • <IOKit/IOService.h>

  • <IOKit/audio/IOAudioTypes.h>

  • <IOKit/audio/IOAudioStream.h>

  • "IOAudioTypes.h"

  • "IOAudioStream.h"

Data Types

See the Overview section above for header-level documentation.

IOAudioDevicePowerState

Identifies the power state of the audio device

typedef enum _IOAudioDevicePowerState {
   kIOAudioDeviceSleep = 0, // When sleeping
   kIOAudioDeviceIdle = 1, // When no audio engines running
   kIOAudioDeviceActive = 2 // audio engines running
} IOAudioDevicePowerState;
Constants
kIOAudioDeviceSleep

State set when the system is going to sleep

Available in OS X v10.1 and later.

Declared in IOAudioDevice.h.

kIOAudioDeviceIdle

State when the system is awake but none of the IOAudioEngines are in use

Available in OS X v10.1 and later.

Declared in IOAudioDevice.h.

kIOAudioDeviceActive

State when one ore more IOAudioEngines are in use. This state transition must complete before the system will begin playing audio.

Available in OS X v10.1 and later.

Declared in IOAudioDevice.h.

Discussion

A newly created IOAudioDevices defaults to the idle state.

Availability
  • Available in OS X v10.1 and later.
Declared In
IOAudioDevice.h