Class AudioMixer
An audio mixer is responsible for mixing several streams of audio together.
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Cosmos.System.Audio
Assembly: Cosmos.System2.dll
Syntax
public class AudioMixer : AudioStream
Remarks
The AudioMixer class does not implement any kind of compressor or limiter, and as such, the resulting audio may introduce hard-clipping.
Constructors
| Improve this Doc View SourceAudioMixer()
Initializes a new instance of the AudioMixer class.
Declaration
public AudioMixer()
Remarks
The internal mixing buffer will be set to null and will be initialized with the correct format and buffer size as soon as a read operation will be attempted.
Properties
| Improve this Doc View SourceBufferSize
The size of the internal mixing buffer, in audio samples.
Declaration
public int BufferSize { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Depleted
Declaration
public override bool Depleted { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Overrides
| Improve this Doc View SourceSampleRate
Declaration
public override uint SampleRate { get; set; }
Property Value
Type | Description |
---|---|
System.UInt32 |
Overrides
| Improve this Doc View SourceStreams
The list of streams that the audio mixer should process. This list will be dynamically modified as streams get depleted.
Declaration
public List<AudioStream> Streams { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<AudioStream> |
Methods
| Improve this Doc View SourceRead(AudioBuffer)
Declaration
public override void Read(AudioBuffer buffer)
Parameters
Type | Name | Description |
---|---|---|
AudioBuffer | buffer |