Skip to content

Commit

Permalink
Expose Vod Mode to IPC
Browse files Browse the repository at this point in the history
  • Loading branch information
FrostyCoolSlug committed Aug 29, 2024
1 parent 8fb27d6 commit 9022daa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions daemon/src/device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@ impl<'a> Device<'a> {
.await;

let locked_faders = self.settings.get_device_lock_faders(self.serial()).await;
let vod_mode = self.settings.get_device_vod_mode(self.serial()).await;

let submix_supported = self.device_supports_submixes();

Expand Down Expand Up @@ -346,6 +347,7 @@ impl<'a> Device<'a> {
enable_monitor_with_fx: monitor_with_fx,
reset_sampler_on_clear: sampler_reset_on_clear,
lock_faders: locked_faders,
vod_mode,
},
button_down: button_states,
profile_name: self.profile.name().to_owned(),
Expand Down
3 changes: 2 additions & 1 deletion ipc/src/device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use goxlr_types::{
MegaphoneStyle, MicrophoneType, MiniEqFrequencies, Mix, MuteFunction, MuteState, OutputDevice,
PitchStyle, ReverbStyle, RobotStyle, SampleBank, SampleButtons, SamplePlayOrder,
SamplePlaybackMode, SamplerColourTargets, SimpleColourTargets, SubMixChannelName,
VersionNumber, WaterfallDirection,
VersionNumber, VodMode, WaterfallDirection,
};
use serde::{Deserialize, Serialize};
use std::collections::{BTreeMap, HashMap};
Expand Down Expand Up @@ -396,6 +396,7 @@ pub struct Settings {
pub enable_monitor_with_fx: bool,
pub reset_sampler_on_clear: bool,
pub lock_faders: bool,
pub vod_mode: VodMode,
}

#[derive(Debug, Clone, Serialize, Deserialize)]
Expand Down

0 comments on commit 9022daa

Please sign in to comment.