AVAudioPlayerでアラーム音を鳴らそうとしていたのですが、 iPodでの音楽再生に重ねてアラームを鳴らす スリープ状態でも鳴る サイレントモードがオンの場合はヘッドフォン利用時のみアラームを鳴らす という感じで鳴らすのはなかなか一筋縄ではいかないみたいです。 まず、要求1と2を同時に満たすには、オーディオセッションの設定で UInt32 ssnCate = kAudioSessionCategory_MediaPlayback; AudioSessionSetProperty(kAudioSessionProperty_AudioCategory, sizeof(ssnCate), &ssnCate); UInt32 mixWithOthers = 1; AudioSessionSetProperty(kAudioSessionProperty_OverrideCategoryM