API ReferenceSandbox.Audio
public sealed class Sandbox.Audio.MultiChannelBuffer
Holds up to 8 mix buffers, which usually represent output speakers.
Constructors
Showing 1 constructors
public MultiChannelBuffer(int channelCount = 8)
Parameters
channelCount: Default: 8
No results match this filter.
Methods
Showing 8 methods
public void CopyFrom(Sandbox.Audio.MultiChannelBuffer other)
Set this buffer to this value
public void CopyFromUpmix(Sandbox.Audio.MultiChannelBuffer other)
Copies from one buffer to the other. If the other has less channels, we'll upmix
public virtual sealed void Dispose()
Delete and release all resources. Cannot be used again.
public void MixFrom(Sandbox.Audio.MultiChannelBuffer samples, float mix)
Mix the target buffer into this buffer
public void Scale(float volume)
Scale volume of this buffer
public void Silence()
Silence all buffers
No results match this filter.
Properties
Showing 1 properties
public int Sandbox.Audio.MultiChannelBuffer.ChannelCount { get; set; }
How many channels do we have
No results match this filter.
Metadata
| Field | Value |
|---|---|
| Namespace | Sandbox.Audio |
| Type | class |
| Assembly | Sandbox.Engine |
| Doc ID | T:Sandbox.Audio.MultiChannelBuffer |