diff options
author | Strangerke | 2017-01-02 14:49:49 -0800 |
---|---|---|
committer | Eugene Sandulenko | 2017-01-25 22:42:20 +0100 |
commit | c667702f2c6f9e4adc301eb0a11f4c3c327076ad (patch) | |
tree | 59abb4cb13356a159fbf37acea7b110ba0d0f398 /engines/cryo/video.cpp | |
parent | 448fe6303b0f4a5c33862ddaac0f8556b33d2f37 (diff) | |
download | scummvm-rg350-c667702f2c6f9e4adc301eb0a11f4c3c327076ad.tar.gz scummvm-rg350-c667702f2c6f9e4adc301eb0a11f4c3c327076ad.tar.bz2 scummvm-rg350-c667702f2c6f9e4adc301eb0a11f4c3c327076ad.zip |
CRYO: Change soundchannel_t into a class
Diffstat (limited to 'engines/cryo/video.cpp')
-rw-r--r-- | engines/cryo/video.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/engines/cryo/video.cpp b/engines/cryo/video.cpp index 104620466b..d15985a51c 100644 --- a/engines/cryo/video.cpp +++ b/engines/cryo/video.cpp @@ -127,7 +127,7 @@ void HnmPlayer::wantsSound(bool sound) { // Original name: CLHNM_SetupSound void HnmPlayer::setupSound(int16 numSounds, int16 length, int16 sampleSize, float rate, int16 mode) { - _soundChannel = CLSoundChannel_New(mode); + _soundChannel = new soundchannel_t(mode); _soundGroup = new SoundGroup(_vm, numSounds, length, sampleSize, rate, mode); if (sampleSize == 16) _soundGroup->reverse16All(); @@ -135,15 +135,15 @@ void HnmPlayer::setupSound(int16 numSounds, int16 length, int16 sampleSize, floa // Original name: CLHNM_SetupSoundADPCM void HnmPlayer::setupSoundADPCM(int16 numSounds, int16 length, int16 sampleSize, float rate, int16 mode) { - _soundChannelAdpcm = CLSoundChannel_New(mode); + _soundChannelAdpcm = new soundchannel_t(mode); _soundGroupAdpcm = new SoundGroup(_vm, numSounds, length, sampleSize, rate, mode); } // Original name: CLHNM_CloseSound void HnmPlayer::closeSound() { if (_soundChannel) { - CLSoundChannel_Stop(_soundChannel); - CLSoundChannel_Free(_soundChannel); + _soundChannel->stop(); + delete(_soundChannel); _soundChannel = nullptr; } if (_soundGroup) { @@ -151,9 +151,9 @@ void HnmPlayer::closeSound() { _soundGroup = nullptr; } if (_soundChannelAdpcm) { - CLSoundChannel_Stop(_soundChannelAdpcm); - CLSoundChannel_Free(_soundChannelAdpcm); - _soundChannel = nullptr; + _soundChannelAdpcm->stop(); + delete(_soundChannelAdpcm); + _soundChannelAdpcm = nullptr; } if (_soundGroupAdpcm) { delete(_soundGroupAdpcm); |