pub struct SpatialMixingLane;Expand description
A lane that performs spatialized audio mixing.
Implementations§
Source§impl SpatialMixingLane
impl SpatialMixingLane
Sourcepub fn mix(
&self,
view: &AudioView,
output_buffer: &mut [f32],
stream_info: &StreamInfo,
) -> AudioPlaybackWriteback
pub fn mix( &self, view: &AudioView, output_buffer: &mut [f32], stream_info: &StreamInfo, ) -> AudioPlaybackWriteback
Mixes the snapshotted AudioView into output_buffer and
returns one [AudioPlaybackUpdate] per source whose state
changed. The updates are not applied to ECS components here
— that is the audio_playback_writeback DataSystem’s job.
Trait Implementations§
Source§impl Default for SpatialMixingLane
impl Default for SpatialMixingLane
Source§fn default() -> SpatialMixingLane
fn default() -> SpatialMixingLane
Returns the “default value” for a type. Read more
Source§impl Lane for SpatialMixingLane
impl Lane for SpatialMixingLane
Source§fn strategy_name(&self) -> &'static str
fn strategy_name(&self) -> &'static str
Human-readable name identifying this lane’s strategy. Read more
Source§fn execute(&self, ctx: &mut LaneContext) -> Result<(), LaneError>
fn execute(&self, ctx: &mut LaneContext) -> Result<(), LaneError>
Main execution entry point — called each frame/tick by the owning agent. Read more
Source§fn as_any_mut(&mut self) -> &mut dyn Any
fn as_any_mut(&mut self) -> &mut dyn Any
Downcast to a concrete type (mutable) for type-specific operations.
§fn estimate_cost(&self, _ctx: &LaneContext) -> f32
fn estimate_cost(&self, _ctx: &LaneContext) -> f32
Estimated computational cost of running this lane. Read more
§fn on_initialize(&self, _ctx: &mut LaneContext) -> Result<(), LaneError>
fn on_initialize(&self, _ctx: &mut LaneContext) -> Result<(), LaneError>
Called once when the lane is registered or the underlying context resets. Read more
§fn on_shutdown(&self, _ctx: &mut LaneContext)
fn on_shutdown(&self, _ctx: &mut LaneContext)
Called when the lane is being destroyed or the context is shutting down. Read more
Auto Trait Implementations§
impl Freeze for SpatialMixingLane
impl RefUnwindSafe for SpatialMixingLane
impl Send for SpatialMixingLane
impl Sync for SpatialMixingLane
impl Unpin for SpatialMixingLane
impl UnsafeUnpin for SpatialMixingLane
impl UnwindSafe for SpatialMixingLane
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