pub struct VolumePanChain {
pub volume_pan: VolumePanNode,
pub config: VolumeNodeConfig,
}Expand description
A default FxChain for 2D game audio.
This chain contains a single VolumePan node.
Fields§
§volume_pan: VolumePanNode§config: VolumeNodeConfigImplementations§
Source§impl VolumePanChain
impl VolumePanChain
Sourcepub fn set_params<B: AudioBackend>(
&mut self,
params: VolumePanNode,
time: Option<EventInstant>,
node_ids: &[NodeID],
cx: &mut FirewheelCtx<B>,
)
pub fn set_params<B: AudioBackend>( &mut self, params: VolumePanNode, time: Option<EventInstant>, node_ids: &[NodeID], cx: &mut FirewheelCtx<B>, )
Set the parameters of the volume pan 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 VolumePanChain
impl Clone for VolumePanChain
Source§fn clone(&self) -> VolumePanChain
fn clone(&self) -> VolumePanChain
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 VolumePanChain
impl Debug for VolumePanChain
Source§impl Default for VolumePanChain
impl Default for VolumePanChain
Source§fn default() -> VolumePanChain
fn default() -> VolumePanChain
Returns the “default value” for a type. Read more
Source§impl FxChain for VolumePanChain
impl FxChain for VolumePanChain
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 VolumePanChain
impl PartialEq for VolumePanChain
impl Copy for VolumePanChain
impl StructuralPartialEq for VolumePanChain
Auto Trait Implementations§
impl Freeze for VolumePanChain
impl RefUnwindSafe for VolumePanChain
impl Send for VolumePanChain
impl Sync for VolumePanChain
impl Unpin for VolumePanChain
impl UnwindSafe for VolumePanChain
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