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.
Androidで順番に再生したい3つのサウンドがあります。私は、SoundPool を作成し、「maxStreams」を「1」に設定しました。for ループでは、サウンドが「一度に 1 つずつ」一度に再生されるわけではないと考えています。残念ながら、これは間違っています。soundPool を使用して、サウンドを一度に再生するのではなく、順番に再生するにはどうすればよいですか。ありがとう。
SoundPool にはキュー機能がありません。ストリームが必要な場合は、以前のサウンドを停止するだけです。
ストリームの最大数を超えると、SoundPool は、優先度に基づいて、次にその優先度内の経過時間に基づいて、以前に再生していたストリームを自動的に停止します。
サウンドプールのドキュメント