1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
//! Host-side core for the rack audio-plugin framework.
//!
//! `truce-rack-core` defines the contracts every format wrapper
//! (`truce-rack-clap`, `truce-rack-vst3`, `truce-rack-au`, …) implements: the
//! [`Plugin`] trait, the [`AudioBuffer`] / [`EventList`] /
//! [`ProcessContext`] passed into `process`, the [`BusLayout`]
//! that declares bus topology, and the FFI-edge `catch_unwind`
//! helpers in [`wrapper`].
//!
//! No FFI lives here. The crate compiles on every platform with
//! no system dependencies — a consumer that depends on `truce-rack-core`
//! and on a single format wrapper picks up exactly that format's
//! transitive deps.
//!
//! # Mapping from truce
//!
//! `truce-rack-core` mirrors `truce-core` on the host side. The names
//! parallel deliberately:
//!
//! | truce (plugin) | rack (host) |
//! | --- | --- |
//! | `PluginLogic` | [`Plugin`] |
//! | `PluginExport` | [`PluginScanner`] |
//! | `AudioBuffer` | [`AudioBuffer`] |
//! | `EventList` | [`EventList`] |
//! | `ProcessContext` | [`ProcessContext`] |
//! | `BusLayout` | [`BusLayout`] |
//! | `PluginInfo` | [`PluginInfo`] |
//! | `wrapper::run_*` | [`wrapper::run_*`] |
//!
//! A host targeting one format depends on `truce-rack-core` plus that
//! format's wrapper crate; a multi-format host depends on
//! `truce-rack-core` plus each wrapper it needs.
pub use AudioBuffer;
pub use ;
pub use ;
pub use ;
pub use ;
pub use ;
pub use ;
pub use Sample;
pub use PluginScanner;
pub use ;
pub use TransportInfo;