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); }