Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
AVAudioPlayerでサウンドを再生する方法を知っていますが、次々に再生するディスク上のファイルのリストを提供する方法を知りたいです(プレイリスト)
誰かが何か考えを持っていますか?
audioPlayerDidFinishPlaying' ' メソッドを使用して、現在の曲がいつ終了し、いつ新しい曲を開始するかを知るために、これを自分で管理する必要があります。
audioPlayerDidFinishPlaying
Apple の「AddMusic」サンプル プログラムはまさにこれを行い、ほとんどの作業を行うために MPMusicPlayerController と AVAudioPlayer を使用してオーディオ ファイルのプレイリストを設定します。