Api Sandbox Audio MixBuffer
class

MixBuffer

public sealed class MixBuffer

Contains 512 samples of audio data, this is used when mixing a single channel

Constructors

MixBuffer()

Properties

Name Type Description
LevelMax Single
LevelAvg Single

Methods

virtual Void Dispose()
Void Silence()

Silence this buffer

Void CopyFrom(MixBuffer other)

Set this buffer to this value

Void MixFrom(MixBuffer other, Single scale)

Mix this buffer with another

Void MixFrom(MultiChannelBuffer other, Single scale)

Mix this buffer with another

Void Scale(Single volume)

Scale the buffer by volume

Void RandomFill()
Assembly: Sandbox.Engine Namespace: Sandbox.Audio Full Name: Sandbox.Audio.MixBuffer