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.
sound poolで短いサウンド ファイルを再生するために使用していますがandroid、たとえば でサウンドを再生したい場合、サウンドを再生するボタンをクリックし、もう一度ボタンをクリックすると、サウンドを再生したくありません。すでにプレイ中です。どうやって ?
sound pool
android
この結果を達成するには、OnClickListener と組み合わせて、サウンドプールの代わりに MediaPlayer クラスを使用する必要があるようです。
単純な StackOverflow 検索では、次の結果が返されます。