pub struct SpatialBasicChain {
pub spatial_basic: SpatialBasicNode,
}Expand description
A default FxChain for 3D game audio.
This chain contains a single SpatialBasic node.
Fields§
§spatial_basic: SpatialBasicNodeImplementations§
Source§impl SpatialBasicChain
impl SpatialBasicChain
Sourcepub fn set_params<B: AudioBackend>(
&mut self,
params: SpatialBasicNode,
time: Option<EventInstant>,
node_ids: &[NodeID],
cx: &mut FirewheelCtx<B>,
)
pub fn set_params<B: AudioBackend>( &mut self, params: SpatialBasicNode, time: Option<EventInstant>, node_ids: &[NodeID], cx: &mut FirewheelCtx<B>, )
Set the parameters of the spatial basic node.
params- The new parameters.time- The instant these new parameters should take effect. If this isNone, then the parameters will take effect as soon as the node receives the event.
Trait Implementations§
Source§impl Clone for SpatialBasicChain
impl Clone for SpatialBasicChain
Source§fn clone(&self) -> SpatialBasicChain
fn clone(&self) -> SpatialBasicChain
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SpatialBasicChain
impl Debug for SpatialBasicChain
Source§impl Default for SpatialBasicChain
impl Default for SpatialBasicChain
Source§fn default() -> SpatialBasicChain
fn default() -> SpatialBasicChain
Returns the “default value” for a type. Read more
Source§impl FxChain for SpatialBasicChain
impl FxChain for SpatialBasicChain
Source§fn construct_and_connect<B: AudioBackend>(
&mut self,
first_node_id: NodeID,
first_node_num_out_channels: NonZeroChannelCount,
dst_node_id: NodeID,
dst_num_channels: NonZeroChannelCount,
cx: &mut FirewheelCtx<B>,
) -> Vec<NodeID>
fn construct_and_connect<B: AudioBackend>( &mut self, first_node_id: NodeID, first_node_num_out_channels: NonZeroChannelCount, dst_node_id: NodeID, dst_num_channels: NonZeroChannelCount, cx: &mut FirewheelCtx<B>, ) -> Vec<NodeID>
Construct the nodes in the FX chain and connect them, returning a list of the
new node ids. Read more
Source§impl PartialEq for SpatialBasicChain
impl PartialEq for SpatialBasicChain
impl Copy for SpatialBasicChain
impl StructuralPartialEq for SpatialBasicChain
Auto Trait Implementations§
impl Freeze for SpatialBasicChain
impl RefUnwindSafe for SpatialBasicChain
impl Send for SpatialBasicChain
impl Sync for SpatialBasicChain
impl Unpin for SpatialBasicChain
impl UnwindSafe for SpatialBasicChain
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more