Added JAM feature

This commit is contained in:
Ultradesu
2026-07-28 18:41:08 +01:00
parent 1c721b68f5
commit d4c219837b
6 changed files with 39 additions and 25 deletions
+4
View File
@@ -1248,6 +1248,10 @@ impl DevicePlaybackState {
|| (self.role == DevicePlaybackRole::Jam && !self.jam_host)
}
pub fn is_personal_control(&self) -> bool {
self.role == DevicePlaybackRole::Control
}
pub fn is_audio_owner(&self) -> bool {
self.role == DevicePlaybackRole::Active
|| (self.role == DevicePlaybackRole::Jam && self.jam_host)