API ReferenceSandbox.Audio
MultiChannelBufferclass
Holds up to 8 mix buffers, which usually represent output speakers.
object→MultiChannelBuffer
Constructors1
Showing 1 constructors
public MultiChannelBuffer(int channelCount = 8)
| Parameter | Type | Description |
|---|---|---|
| channelCount = 8 | int | — |
No results match this filter.
Methods9
Showing 9 methods
public void CopyFrom(Sandbox.Audio.MultiChannelBuffer other)
Set this buffer to this value
| Parameter | Type | Description |
|---|---|---|
| other | MultiChannelBuffer | — |
Returns:
void—public void CopyFromUpmix(Sandbox.Audio.MultiChannelBuffer other)
Copies from one buffer to the other. If the other has less channels, we'll upmix
| Parameter | Type | Description |
|---|---|---|
| other | MultiChannelBuffer | — |
Returns:
void—public virtual sealed void Dispose()
Delete and release all resources. Cannot be used again.
Returns:
void—public void HardLimit()
Clamp each sample to [-1, 1] across all channels to prevent digital clipping.
Returns:
void—public void MixFrom(Sandbox.Audio.MultiChannelBuffer samples, float mix)
Mix the target buffer into this buffer
| Parameter | Type | Description |
|---|---|---|
| samples | MultiChannelBuffer | — |
| mix | float | — |
Returns:
void—public void Scale(float volume)
Scale volume of this buffer
| Parameter | Type | Description |
|---|---|---|
| volume | float | — |
Returns:
void—public void Silence()
Silence all buffers
Returns:
void—No results match this filter.
Properties1
Showing 1 properties
public int Sandbox.Audio.MultiChannelBuffer.ChannelCount { get; set; }
How many channels do we have
Returns:
int—No results match this filter.