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.
ゲームを作っています。プレーヤーが別のレベルに移動しても、音楽は引き続き再生されます。次のレベルの新しい音楽を開始するために、音楽をフェードアウトさせたいと思います。
再生にはmp3を使用しています。パッケージ: jl1.0、mp3spi1.9.4、tritonus_share-0.3.6。そうそう。ボリュームは、FloatControll クラスではサポートされていません。
Volume代わりにコントロールしようとしていると思いますMasterGain。これを試して:
Volume
MasterGain
if (line.isControlSupported(FloatControl.Type.MASTER_GAIN)) { masterGain = (FloatControl) line.getControl(FloatControl.Type.MASTER_GAIN); }