Open coneybeare opened 14 years ago
for lack of a better solution right now, I added a hardware preference override to the audioqueue in "createqueue" line 1494
// set the software codec too on the queue.
UInt32 val = kAudioQueueHardwareCodecPolicy_PreferSoftware;
OSStatus ignorableError;
ignorableError = AudioQueueSetProperty(audioQueue, kAudioQueueProperty_HardwareCodecPolicy, &val, sizeOfUInt32);
if (ignorableError)
{
return;
}
wrote it up in more detail here http://code.coneybeare.net/using-audiostreamer-with-avaudioplayer-and-av
I have the same problem. Thanks coneybeare.
I feel like you should probably add this to a fork and request it be added into the main code base.
Yes , Playing multiple sounds doesn't work. thanks for the fix. This patch should be officially committed for this issue.
My app uses AVAudioPlayers for local sounds in addition to AudioStreamer for remote sounds.
Audio streamer works great by itself, but after playing a local sound (using the hardware decoder) an AudioStreamer cannot be instantiated and returns error code 1752656245 (hwiu)
http://developer.apple.com/iphone/library/documentation/musicaudio/reference/audioconverterservicesreference/Reference/reference.html
Looking at the docs doesn't really help in this case, or at least I don't understand enough about what is going on to figure it out. Is this an AudioStreamer bug or am I doing something wrong?