Skip to content

Commit

Permalink
Only use Equalizer APO labels when the channel count is <= 8
Browse files Browse the repository at this point in the history
  • Loading branch information
VoidXH committed Nov 22, 2023
1 parent 654b722 commit 6ea2ca7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public override void Export(string path) {
/// <summary>
/// Get the short name of a channel written to the configuration file to select that channel for setup.
/// </summary>
protected override string GetLabel(int channel) => channel < 8 ?
protected override string GetLabel(int channel) => Channels.Length <= 8 ?
EqualizerAPOUtils.GetChannelLabel(Channels[channel].reference) : base.GetLabel(channel);
}
}
2 changes: 1 addition & 1 deletion Cavern/Channels/SpatialRemapping.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public static float[][] GetMatrix(Channel[] playedContent, Channel[] usedLayout)
Channel[] oldChannels = Listener.Channels;
Listener.ReplaceChannels(usedLayout);
for (int i = 0; i < inputs; i++) {
simulator.AttachSource(new Source() {
simulator.AttachSource(new Source {
Clip = GetClipForChannel(i, inputs, simulator.SampleRate),
Position = playedContent[i].SpatialPos * Listener.EnvironmentSize,
LFE = playedContent[i].LFE,
Expand Down

0 comments on commit 6ea2ca7

Please sign in to comment.