aboutsummaryrefslogtreecommitdiff
path: root/engines/sky/music/adlibchannel.cpp
diff options
context:
space:
mode:
authorMatthew Hoops2015-04-03 00:18:58 -0400
committerMatthew Hoops2015-07-07 20:19:42 -0400
commitf1f29302f5401c4782985cec4d47d069b99036ee (patch)
tree60c6c8c7b2867cf9524197d2c2c0734746906b71 /engines/sky/music/adlibchannel.cpp
parent2fa1ce51dd3cb00eef289094fe9f660c237254bc (diff)
downloadscummvm-rg350-f1f29302f5401c4782985cec4d47d069b99036ee.tar.gz
scummvm-rg350-f1f29302f5401c4782985cec4d47d069b99036ee.tar.bz2
scummvm-rg350-f1f29302f5401c4782985cec4d47d069b99036ee.zip
AUDIO: Remove the legacy OPL API
Diffstat (limited to 'engines/sky/music/adlibchannel.cpp')
-rw-r--r--engines/sky/music/adlibchannel.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sky/music/adlibchannel.cpp b/engines/sky/music/adlibchannel.cpp
index 8400fef6eb..b57f20f0f8 100644
--- a/engines/sky/music/adlibchannel.cpp
+++ b/engines/sky/music/adlibchannel.cpp
@@ -29,7 +29,7 @@
namespace Sky {
-AdLibChannel::AdLibChannel(FM_OPL *opl, uint8 *pMusicData, uint16 startOfData) {
+AdLibChannel::AdLibChannel(OPL::OPL *opl, uint8 *pMusicData, uint16 startOfData) {
_opl = opl;
_musicData = pMusicData;
_channelData.loopPoint = startOfData;
@@ -95,7 +95,7 @@ void AdLibChannel::updateVolume(uint16 pVolume) {
*/
void AdLibChannel::setRegister(uint8 regNum, uint8 value) {
if (_adlibRegMirror[regNum] != value) {
- OPLWriteReg (_opl, regNum, value);
+ _opl->writeReg(regNum, value);
_adlibRegMirror[regNum] = value;
}
}