pub struct RrEmitter {
    pub event_id: AkID<'static>,
    pub flags: AkCallbackType,
    pub auto_post: bool,
    pub despawn_on_silent: bool,
    /* private fields */
}
Expand description

Sound emitter configuration.

If its entity gets destroyed or this component gets removed, the events posted with it will be stopped.

Fields

event_id: AkID<'static>

The event to pre-set on this emitter. Defaults to no event (ie, "").

See auto_post

flags: AkCallbackType

Mask describing which callbacks you want to subscribe to. Defaults to none (ie, AkCallbackType(0)).

auto_post: bool

Whether to auto post the associated event when this emitter gets registered.

See event_id

despawn_on_silent: bool

Whether to automatically despawn the entity bearing this emitter when it is done playing.

Remark “Done playing” = no more events are playing on it - work if several events got posted simultaneously with it.

Implementations

Whether any events are playing on this emitter

Whether this component appears to be registered in Wwise.

You can make sure of this by also querying for the RrRegistered component on your entities.

Stops all events currently playing on this emitter.

Posts the event self.event_id using flags self.flags.

If you pass None for cb_channel, you won’t receive any AkCallbackEvent in your [EventReader]s, even if you had some flags set in self.flags.

See CallbackChannel

Posts event using flags (this method ignores self.flags).

If you pass None for cb_channel, you won’t receive any AkCallbackEvent in your [EventReader]s, even if you had some flags.

See CallbackChannel

Trait Implementations

Formats the value using the given formatter. Read more

Creates a pure emitter (no transform) that can later be used to post events on.

Defaults to no event nor auto post, no callback flags, no despawn on silent.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Convert Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can then be further downcast into Box<ConcreteType> where ConcreteType implements Trait. Read more
Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait. Read more
Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Any’s vtable from &Trait’s. Read more
Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s. Read more
Convert Arc<Trait> (where Trait: Downcast) to Arc<Any>. Arc<Any> can then be further downcast into Arc<ConcreteType> where ConcreteType implements Trait. Read more

Returns the argument unchanged.

Creates Self using data from the given [World]
Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more