Skip to content

Commit

Permalink
🐛 Changed so that if pan is 1, the left side has priority
Browse files Browse the repository at this point in the history
  • Loading branch information
AutumnSky1010 committed Dec 5, 2024
1 parent 905a56d commit acd58f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/SoundMaker/Sounds/TrackBaseSound.cs
Original file line number Diff line number Diff line change
Expand Up @@ -274,8 +274,8 @@ public StereoWave GenerateStereoWave()
var pan = (track.Pan + 1) / 2.0f;
for (int i = track.StartIndex; i <= track.EndIndex; i++)
{
right[i] += trackWave[i - track.StartIndex] * pan;
left[i] += trackWave[i - track.StartIndex] * (1 - pan);
left[i] += trackWave[i - track.StartIndex] * pan;
right[i] += trackWave[i - track.StartIndex] * (1 - pan);
}
}
}
Expand Down

0 comments on commit acd58f7

Please sign in to comment.