2014年11月10日月曜日

iOS 8では.aupresetを使ってSoundFontを読めなくなった

AU Lab上でSoundFontを使った.aupresetを作り、それをTechnical NoteのLoading an instrument from a AUSampler Preset Fileを参考に読みこんでAUSamplerにセットしていたのですが、
iOS 8(シミュレータ含む)ではAudioUnitSetProperty() - kAudioUnitProperty_ClassInfoを実行すると

ERROR:     354: InstrumentManager::GetSampleWithID: Cannot find sample with ID 0x10000001

というエラーが出て読み込めなくなってしまいました。(iOS 7だと実機、シミュレータ共にOK)
.aupresetを使う方法は諦め、Technical NoteのLoading an instrument from a DLS2 sound bank or SoundFont Fileの方法を使うようにしました。

なお、Yosemite上のAU Lab(2.3.1)でもAUSamplerのプリセットをロードしようとすると同様のエラーが出てサンプルを読み込めない場合があるようでした。