46 lines
1.4 KiB
Rust
46 lines
1.4 KiB
Rust
//! Pure domain contracts for fader_master.
|
|
//!
|
|
//! Domain logic has no runtime, terminal, filesystem, or native audio/MIDI
|
|
//! dependencies. Stable IDs are distinct types:
|
|
//!
|
|
//! ```compile_fail
|
|
//! use fader_core::{ApplicationId, GroupId};
|
|
//! let application = ApplicationId::new("music").unwrap();
|
|
//! let group: GroupId = application;
|
|
//! ```
|
|
|
|
#![forbid(unsafe_code)]
|
|
|
|
mod bindings;
|
|
mod group;
|
|
mod id;
|
|
mod matching;
|
|
mod mute;
|
|
mod pickup;
|
|
mod revision;
|
|
mod routing;
|
|
mod server;
|
|
mod state;
|
|
mod volume;
|
|
|
|
pub use bindings::{
|
|
Binding, BindingAction, BindingError, BindingKey, Bindings, MessageKind, MidiChannel, MidiData,
|
|
MidiRangeError,
|
|
};
|
|
pub use group::{RelativeGroupState, VolumeMode, VolumeView, plan_volume, volume_view};
|
|
pub use id::{ApplicationId, FaderId, GroupId, IdError, ProfileId, SurfaceId};
|
|
pub use matching::{
|
|
ApplicationMatcher, ApplicationRuntime, ApplicationSelector, MetadataField, SelectorError,
|
|
SelectorKind, SelectorMode, StreamHandle, StreamMetadata,
|
|
};
|
|
pub use mute::{MuteIntent, MutePlanner, mute_view};
|
|
pub use pickup::{Pickup, PickupError, PickupState};
|
|
pub use revision::{BackendEpoch, Revision};
|
|
pub use routing::{Routing, RoutingError, Target};
|
|
pub use server::{
|
|
AdapterCommand, AdapterEvent, CommandOrigin, OperationId, ReducerError, ServerCommand,
|
|
ServerReducer, StreamView, Transition,
|
|
};
|
|
pub use state::{Availability, Mute, ValueState};
|
|
pub use volume::{ChannelGainError, ChannelGains, Gain, GainError};
|