Skip to content

Commit

Permalink
Remove unused Position property from AudioMixer
Browse files Browse the repository at this point in the history
This member will probably never be used, as an audio mixer shouldn't really have a "position" property.
  • Loading branch information
ascpixi committed Jul 6, 2022
1 parent 9f3c8c0 commit ebfec56
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions source/Cosmos.System2/Audio/AudioMixer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ namespace Cosmos.System.Audio {
/// limiter, and as such, the resulting audio may introduce hard-clipping.
/// </remarks>
public class AudioMixer : AudioStream {
uint pos = 0;
uint sampleRate;
AudioBuffer mixBuffer;

Expand Down Expand Up @@ -48,16 +47,6 @@ public override uint SampleRate {
}

public override bool Depleted => false;

/// <summary>
/// The position, in samples, of the mixer audio stream. Attempting to set this
/// property to another value will result in an <see cref="InvalidOperationException"/>.
/// </summary>
public uint Position
{
get => pos;
set => throw new InvalidOperationException("Cannot set the position of an AudioMixer.");
}
#endregion

AudioBufferWriter cachedOutputWriter;
Expand Down Expand Up @@ -139,8 +128,6 @@ public unsafe override void Read(AudioBuffer buffer)
}
}

pos += (uint)buffer.Size;

ApplyPostProcessing(buffer);
}

Expand Down

0 comments on commit ebfec56

Please sign in to comment.