public readonly record struct PlaybackSettingsHow a sound should be played.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
A value with defaults that describe the ordinary case — full volume, unaltered pitch, on the master bus, in the room rather than in the world — so engine.Play(clip) means something sensible and every field is an override of a stated default rather than a thing that must be filled in.
Fields and properties (12)
public int BusWhich bus to route into. Zero is the master.
public int SendBusAn extra bus a copy of this sound also goes to, or −1 for none.
public float SendLevelHow much goes to SendBus, as a linear gain.
public float GainA linear gain. One is unaltered.
public float PitchA playback rate multiplier. Two is an octave up and half the length.
public float PanWhere it sits between the speakers when it is not spatialised. −1 left, +1 right.
public bool LoopWhether the clip wraps round instead of ending.
public bool IsSpatialWhether it is a thing in the world rather than a sound in the room.
public SpatialSettings SpatialWhere in the world, and how it behaves there. Read only when IsSpatial.
public bool StartPausedWhether it starts paused, so a caller can position it before a single frame is heard.
public int PriorityHow hard this sound is to displace when the voice pool is full. Higher survives.
public long StartFrameThe device frame at which it should begin. Zero is "as soon as the mixer sees it".
Methods (1)
public PlaybackSettings()How a sound should be played.
Used by (34)
- GameSoundsThirdPersonShooter
- PeerVoiceChat
- VideoGameVideoPlayback
- AudioEffectTestsVixen.Audio.Tests
- AudioEngineVixen.Audio
- AudioEventVixen.Audio
- AudioMixerTestsVixen.Audio.Tests
- AudioRoutingTestsVixen.Audio.Tests
- AudioSystemVixen.Audio
- BuiltinParameterTestsVixen.Audio.Tests
- CaptureTestsVixen.Audio.Tests
- ConvolutionTestsVixen.Audio.Tests
- DynamicsTestsVixen.Audio.Tests
- FadeTestsVixen.Audio.Tests
- HrtfTestsVixen.Audio.Tests
- LayeredEventTestsVixen.Audio.Tests
- LiveSampleProviderTestsVixen.Audio.Tests
- MixControlServerTestsVixen.Audio.Tests
- MixerAssetTestsVixen.Audio.Tests
- MixerParameterTestsVixen.Audio.Tests
- MultipleListenerTestsVixen.Audio.Tests
- MusicPlayerVixen.Audio
- MusicPlayerTestsVixen.Audio.Tests
- OcclusionTestsVixen.Audio.Tests
- OpenALBackendTestsVixen.Audio.Backend.OpenAL.Tests
- PerVoiceSendTestsVixen.Audio.Tests
- ResamplerTestsVixen.Audio.Tests
- ReverbZoneTestsVixen.Audio.Tests
- SpatializerTestsVixen.Audio.Tests
- SpectrumAnalyzerTestsVixen.Audio.Tests
- StreamingTestsVixen.Audio.Tests
- VirtualVoiceTestsVixen.Audio.Tests
- VoiceParameterTestsVixen.Audio.Tests
- VoiceStealingTestsVixen.Audio.Tests