# 7. Core API Reference | iOS Specific

APIs and types for iOS platform, see fmod_ios.h

- FMOD_AUDIOQUEUE_CODECPOLICY Control whether the sound will use a the dedicated hardware decoder or a software codec.

## FMOD_AUDIOQUEUE_CODECPOLICY

Control whether the sound will use a the dedicated hardware decoder or a software codec.

C
C++

    typedef enum FMOD_AUDIOQUEUE_CODECPOLICY {
      FMOD_AUDIOQUEUE_CODECPOLICY_DEFAULT,
      FMOD_AUDIOQUEUE_CODECPOLICY_SOFTWAREONLY,
      FMOD_AUDIOQUEUE_CODECPOLICY_HARDWAREONLY
    } FMOD_AUDIOQUEUE_CODECPOLICY;

Not supported for C#.

Not supported for JavaScript.

FMOD_AUDIOQUEUE_CODECPOLICY_DEFAULT
  Try hardware first, if it's in use or prohibited by audio session, try software.
FMOD_AUDIOQUEUE_CODECPOLICY_SOFTWAREONLY
  kAudioQueueHardwareCodecPolicy_UseSoftwareOnly ~ try software, if not available fail.
FMOD_AUDIOQUEUE_CODECPOLICY_HARDWAREONLY
  kAudioQueueHardwareCodecPolicy_UseHardwareOnly ~ try hardware, if not available fail.

Every devices has a single hardware decoder and unlimited software decoders.

See Also: FMOD_CREATESOUNDEXINFO