Browse Source

Fixed 5.1 upmixing.

improved_timing
Ian Burgmyer 6 years ago
parent
commit
a6ccbc0dcf
  1. 2
      DotSDL/Audio/FormatConverter.cs

2
DotSDL/Audio/FormatConverter.cs

@ -166,7 +166,7 @@ namespace DotSDL.Audio {
/// <param name="samples">The double array to write the converted data to.</param>
private static void ToFiveOne(ref AudioBuffer buffer, out double[] samples) {
var ch = (int)ChannelCount.FiveOne;
samples = new double[buffer.Length * (int)ChannelCount.Quadraphonic];
samples = new double[buffer.Length * (int)ChannelCount.FiveOne];
// TODO: Improve upmixing.
switch(buffer.Channels) {

Loading…
Cancel
Save