diff options
author | JP Cimalando <jpcima@users.noreply.github.com> | 2019-02-24 11:04:00 +0100 |
---|---|---|
committer | JP Cimalando <jpcima@users.noreply.github.com> | 2019-02-24 11:04:00 +0100 |
commit | 432a19d45b1b285184a1000c6d528fcb0f360f7f (patch) | |
tree | 1deab9d03d7189f1be6d18f3b53a743ea79896d0 | |
parent | 2e61743ff0092032c2f2590b8333cea55758fd13 (diff) | |
download | libADLMIDI-432a19d45b1b285184a1000c6d528fcb0f360f7f.tar.gz libADLMIDI-432a19d45b1b285184a1000c6d528fcb0f360f7f.tar.bz2 libADLMIDI-432a19d45b1b285184a1000c6d528fcb0f360f7f.zip |
javaopl: fix inversion of panning
-rw-r--r-- | src/chips/java_opl3.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/chips/java_opl3.cpp b/src/chips/java_opl3.cpp index 39477e2..a20a67d 100644 --- a/src/chips/java_opl3.cpp +++ b/src/chips/java_opl3.cpp @@ -75,7 +75,7 @@ void JavaOPL3::writePan(uint16_t addr, uint8_t data) float phase = (data == 63 || data == 64) ? 63.5f : (float)data; phase *= (float)(M_PI / 2 / 127); - chip_r->SetPanning(channel, sinf(phase), cosf(phase)); + chip_r->SetPanning(channel, cosf(phase), sinf(phase)); } void JavaOPL3::nativeGenerateN(int16_t *output, size_t frames) |