Api Sandbox Audio MultiChannelBuffer
class

MultiChannelBuffer

public sealed class MultiChannelBuffer

Holds up to 8 mix buffers, which usually represent output speakers.

Constructors

MultiChannelBuffer(Int32 channelCount)

Properties

Name Type Description
ChannelCount Int32 How many channels do we have

Methods

virtual Void Dispose()

Delete and release all resources. Cannot be used again.

MixBuffer Get(AudioChannel i)

Get MixBuffer number i

MixBuffer Get(Int32 i)

Get MixBuffer number i

Void Silence()

Silence all buffers

Void CopyFrom(MultiChannelBuffer other)

Set this buffer to this value

Void CopyFromUpmix(MultiChannelBuffer other)

Copies from one buffer to the other. If the other has less channels, we'll upmix

Void MixFrom(MultiChannelBuffer samples, Single mix)

Mix the target buffer into this buffer

Void Scale(Single volume)

Scale volume of this buffer

Assembly: Sandbox.Engine Namespace: Sandbox.Audio Full Name: Sandbox.Audio.MultiChannelBuffer