编辑调整、对比模块
This commit is contained in:
1 parent
c9e61f38c5
commit
6cfa74c901
76 files changed
+9514
-626
No files matched your search
@@ -224,6 +224,15 @@ impl AudioEngine {
|
||||
}
|
||||
}
|
||||
|
||||
/// 当前音量与静音位(0.0~1.0)。
|
||||
/// 供托盘菜单读取显示;跨曲目沿用同一组值(切歌不重置)。
|
||||
pub fn volume(&self) -> (f32, bool) {
|
||||
(
|
||||
f32::from_bits(self.volume.load(Ordering::Relaxed)),
|
||||
self.muted.load(Ordering::Relaxed),
|
||||
)
|
||||
}
|
||||
|
||||
pub fn state(&self) -> AudioState {
|
||||
let Some(s) = self.current() else {
|
||||
return AudioState {
|
||||
|
||||
Reference in new issue
Block a user