API ReferenceSandbox.Audio
MixBufferclass
Contains 512 samples of audio data, this is used when mixing a single channel
object→MixBuffer
Constructors1
Showing 1 constructors
public MixBuffer()
No results match this filter.
Methods8
Showing 8 methods
public void CopyFrom(Sandbox.Audio.MixBuffer other)
Set this buffer to this value
| Parameter | Type | Description |
|---|---|---|
| other | MixBuffer | — |
Returns:
void—public virtual sealed void Dispose()
Returns:
void—public void HardLimit()
Clamp each sample to [-1, 1] to prevent digital clipping from multiple voices accumulating.
Returns:
void—public void RandomFill()
Returns:
void—public void Scale(float volume)
Scale the buffer by volume
| Parameter | Type | Description |
|---|---|---|
| volume | float | — |
Returns:
void—public void Silence()
Silence this buffer
Returns:
void—No results match this filter.
Properties2
Showing 2 properties
public float Sandbox.Audio.MixBuffer.LevelAvg { get; set; }
Returns:
float—public float Sandbox.Audio.MixBuffer.LevelMax { get; set; }
Returns:
float—No results match this filter.