Skip to content
Version 2.32.0
↓ Get the launcher

IVoiceInjection.CreateSource method

Create an independent playback voice in the mixer. Returns null if the mixer is at capacity. Dispose it to remove it from the mixer (sources a plugin leaves open are auto-disposed on plugin teardown). Typically a plugin keeps one source for looped background audio and/or uses PlayOnce for one-shots. Main-thread only.

public IVoiceSource? CreateSource()