1use fmod_sys::*;
8
9mod channel_format;
10mod connections;
11mod general;
12mod metering;
13mod parameters;
14mod processing;
15
16#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
17#[repr(transparent)] pub struct Dsp {
19 pub(crate) inner: *mut FMOD_DSP,
20}
21
22unsafe impl Send for Dsp {}
23unsafe impl Sync for Dsp {}
24
25impl From<*mut FMOD_DSP> for Dsp {
26 fn from(value: *mut FMOD_DSP) -> Self {
27 Dsp { inner: value }
28 }
29}
30
31impl From<Dsp> for *mut FMOD_DSP {
32 fn from(value: Dsp) -> Self {
33 value.inner
34 }
35}