mirror of
https://github.com/bleackstorm/SteamFrame-FPV-Control-Center.git
synced 2026-12-03 07:31:57 +01:00
feat(audio): add GStreamer PCM audio alerts for battery, LQ, arming, and DVR
This commit is contained in:
1 parent
4715505800
commit
56f37d1320
9 files changed
+570
-2
No files matched your search
@@ -24,7 +24,7 @@ impl VrMenuPage {
|
||||
/// Nombre d'entrées dans le menu principal minimaliste VR (actions essentielles).
|
||||
pub const VR_MENU_MAIN_COUNT: usize = 9;
|
||||
/// Nombre d'entrées dans le sous-menu Avancé VR.
|
||||
pub const VR_MENU_ADV_COUNT: usize = 9;
|
||||
pub const VR_MENU_ADV_COUNT: usize = 10;
|
||||
|
||||
/// Données d'affichage zéro-allocation (`Copy`) pour le Menu Minimaliste VR dans le casque.
|
||||
#[derive(Debug, Clone, Copy)]
|
||||
@@ -44,6 +44,8 @@ pub struct VrMenuRenderData {
|
||||
pub dvr_recording: bool,
|
||||
pub gear_3_max: u16,
|
||||
pub vibration_pct: u8,
|
||||
pub audio_alerts_on: bool,
|
||||
pub audio_volume_pct: u8,
|
||||
pub wifi_channel: u16,
|
||||
pub quit_confirm_pending: bool,
|
||||
pub feedback_msg: Option<(StackStr<48>, bool)>,
|
||||
@@ -707,6 +709,16 @@ impl OsdOverlay {
|
||||
let _ = write!(val_buf, "< {}% >", menu.vibration_pct);
|
||||
[100, 225, 255, 255]
|
||||
}
|
||||
(VrMenuPage::Advanced, 8) => {
|
||||
let _ = write!(label_buf, "{}ALERTES AUDIO", prefix);
|
||||
if menu.audio_alerts_on && menu.audio_volume_pct > 0 {
|
||||
let _ = write!(val_buf, "< {}% >", menu.audio_volume_pct);
|
||||
[90, 255, 130, 255]
|
||||
} else {
|
||||
let _ = write!(val_buf, "< OFF >");
|
||||
[160, 175, 195, 255]
|
||||
}
|
||||
}
|
||||
(VrMenuPage::Advanced, _) => {
|
||||
let _ = write!(label_buf, "{}CANAL RADXA 5.8G", prefix);
|
||||
let _ = write!(val_buf, "< CH {} >", menu.wifi_channel);
|
||||
|
||||
Reference in new issue
Block a user