ap4y / OrigamiEngine

Lightweight audio engine for iOS and OSX with flac, cue, mp3, m4a, m3u support.
http://ap4y.github.com/OrigamiEngine/
MIT License
545 stars 118 forks source link

Remove method changing format of stream which in output scope and who… #79

Open uinaba opened 8 years ago

uinaba commented 8 years ago

Thanks you for very nice library :) I found a bug about FLAC. So I report it to you.(Sorry about my poor English.)

I think,format of stream that is in output scope and whose element is zero is from the currently-active output audio hardware. So we cannot change its format and return kAudioUnitErr_PropertyNotWritable. This error affect changing another stream format.

Please look the section,”Essential Characteristics of I/O Units”. (https://developer.apple.com/library/ios/documentation/MusicAudio/Conceptual/AudioUnitHostingGuide_iOS/AudioUnitHostingFundamentals/AudioUnitHostingFundamentals.html)