Skip to main content

gled_model/
sound.rs

1//! Sound triggers as projects store them, and the audio input device.
2
3pub mod trigger;
4pub mod trigger_params;
5pub mod trigger_ref;
6
7use serde::{Deserialize, Serialize};
8
9/// The audio input device of a project: cpal's device id as text, e.g.
10/// `ALSA://device/1`. Only the machine that opens the device parses it.
11#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, Hash)]
12#[serde(transparent)]
13pub struct AudioDeviceId(pub String);