-
Notifications
You must be signed in to change notification settings - Fork 0
Personalization
Use cases include (but are not limited to) setting volume per player preferences, or environment-based loudness.
The component re-sends personalized settings when the SpeakerToy's default settings are changed.
Note
Settings are tied to Player instances. You have to manage rejoining players yourself.
Settings are cleared when the speaker is pooled
You can access per-player settings by using the indexer: personalization[player]
Add the SpeakerPersonalization component to a SpeakerToy to configure different settings per player.
Add Empty Personalization
using SecretLabNAudio.Core.Extensions;
speaker.AddPersonalization();
speaker.WithPersonalization(personalization =>
{
// configure
});The above extension methods can be used on audio players and SpeakerToys.
Tip
See also: example live personalized send engine
Tip
Use SpeakerSettings.From(personalization) with { /* modified properties */} to only change certain properties.
Sets the speaker settings for the given player.
Modifies the current settings for the given player based on a delegate that transforms settings. The current settings are null if there's no override set for the player.
Clears the override for the given player and sends the default settings.
- π Home
- πΌ Digital Audio Basics
- π Examples
- π¦ Supported Formats
- β¬οΈ Migrating from v1
- π AudioPlayer
- πΎ Short Clips
- πΏ Streaming From Disk
- ποΈ Speaker Groups
- π Sample Providers
- β»οΈ Pooling
- π© SendEngines
- π§ Personalizing Speakers
- π Monitoring Output
- βοΈ AudioQueue
- πΆ Mixer
- ποΈ ProcessorChain
Caution
v1 will be out of support soon.