aboutsummaryrefslogtreecommitdiff
path: root/src/chips
diff options
context:
space:
mode:
authorJP Cimalando <jpcima@users.noreply.github.com>2019-02-23 20:30:28 +0100
committerJP Cimalando <jpcima@users.noreply.github.com>2019-02-23 20:30:28 +0100
commit62055cfc73ac05104df6640557adf2be24abc049 (patch)
treec739a064af4eb3ea7ecfa5bd7a2fa44792581c52 /src/chips
parent80aa7e0bcb4d65dd8ed12b1d6c1ff5ad18007a6e (diff)
downloadlibADLMIDI-62055cfc73ac05104df6640557adf2be24abc049.tar.gz
libADLMIDI-62055cfc73ac05104df6640557adf2be24abc049.tar.bz2
libADLMIDI-62055cfc73ac05104df6640557adf2be24abc049.zip
opal: enable use of soft panning
Diffstat (limited to 'src/chips')
-rw-r--r--src/chips/opal_opl3.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/chips/opal_opl3.cpp b/src/chips/opal_opl3.cpp
index 895e7e0..27afa64 100644
--- a/src/chips/opal_opl3.cpp
+++ b/src/chips/opal_opl3.cpp
@@ -60,8 +60,13 @@ void OpalOPL3::writeReg(uint16_t addr, uint8_t data)
void OpalOPL3::writePan(uint16_t addr, uint8_t data)
{
- //Opal *chip_r = reinterpret_cast<Opal *>(m_chip);
- // TODO full panning
+#ifdef OPAL_HAVE_SOFT_PANNING
+ Opal *chip_r = reinterpret_cast<Opal *>(m_chip);
+ chip_r->Pan(addr, data);
+#else
+ (void)addr;
+ (void)data;
+#endif
}
void OpalOPL3::nativeGenerate(int16_t *frame)