0
私のアプリケーションでは、設定画面でミュートオプションを提供していますが、サウンドエフェクトはミュートされますが、タブレットでクリックできるクリック可能なアイテムは、クリック音。システムのクリックがどのように起きるのを止めるには?これは私の現在のplaySoundメソッドであり、mMuteのサウンドエフェクトは再生されません。タブレットとハンドセットを同時にサポートする際の問題 - 音
try {
streamVolume = mAudioManager
.getStreamVolume(AudioManager.STREAM_MUSIC);
streamVolume = streamVolume
/mAudioManager.getStreamMaxVolume(AudioManager.STREAM_MUSIC);
} catch (NullPointerException e) {
Log.e(DEBUG_TAG, "Null pointer returned from audio manager");
}
Integer soundToPlay = mSoundPoolMap.get(sound);
if (streamVolume != 0.0f && soundToPlay != null && !mMute) {
mSoundPool.play(mSoundPoolMap.get(sound),
streamVolume, streamVolume,
1, 0, 1.0f);
} else {
Log.e(DEBUG_TAG, sound.toString() + " not found in sound pool map");
}
}
錠剤のサウンド処理に役立つヒントはありますか?私はそれが少し違うと思う。
こんにちはnmr、私は現在スタイルとテーマ内で定義された多くの私の意見を持っているので、変更することがあり、非常に迅速になる可能性があります。 MyButtonのスタイルでandroid:soundEffectsEnabled> falseを試してみましょう。 –
扱います。私はテーマ/スタイルを使用して非常にうれしい - 私はほとんど変更する必要がありました。 –