#[non_exhaustive]pub struct SpatialSceneSettings {
pub emitter_capacity: usize,
pub listener_capacity: usize,
}Expand description
Settings for a spatial scene.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.emitter_capacity: usizeThe maximum number of emitters that can be in the scene at once.
listener_capacity: usizeThe maximum number of listeners that can be in the scene at once.
Implementations§
Source§impl SpatialSceneSettings
impl SpatialSceneSettings
Sourcepub fn new() -> SpatialSceneSettings
pub fn new() -> SpatialSceneSettings
Creates a new SpatialSceneSettings with the default settings.
Sourcepub fn emitter_capacity(self, emitter_capacity: usize) -> SpatialSceneSettings
pub fn emitter_capacity(self, emitter_capacity: usize) -> SpatialSceneSettings
Sets the maximum number of emitters that can be in the scene at once.
Sourcepub fn listener_capacity(self, listener_capacity: usize) -> SpatialSceneSettings
pub fn listener_capacity(self, listener_capacity: usize) -> SpatialSceneSettings
Sets the maximum number of listeners that can be in the scene at once.
Trait Implementations§
Source§impl Default for SpatialSceneSettings
impl Default for SpatialSceneSettings
Source§fn default() -> SpatialSceneSettings
fn default() -> SpatialSceneSettings
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SpatialSceneSettings
impl RefUnwindSafe for SpatialSceneSettings
impl Send for SpatialSceneSettings
impl Sync for SpatialSceneSettings
impl Unpin for SpatialSceneSettings
impl UnwindSafe for SpatialSceneSettings
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
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
fn into_sample(self) -> T
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().