Troubleshooting "AudioQueueObject :: IONodeConnection :: _ AcquireHardwareCodec: failed (" hwiu ") while playing a sound file

[Error]: 21: 46: 56.148 [AudioQueueServer] AudioQueueObject :: IONodeConnection :: _ AcquireHardwareCodec: failed ('hwiu')

This is the error I get when playing a sound file. Is this a codec problem or a problem with the sound file itself?

+3
source share
1 answer

docs "hwiu" " ". . AudioQueue, kAudioQueueHardwareCodecPolicy_PreferSoftware, , :

AudioQueueSetProperty(yourQueue, 
                      kAudioQueueProperty_HardwareCodecPolicy,
                      &kAudioQueueHardwareCodecPolicy_PreferSoftware,
                      sizeof(kAudioQueueHardwareCodecPolicy_PreferSoftware));
+1

All Articles