diff options
| author | Strangerke | 2016-10-04 21:40:06 +0200 |
|---|---|---|
| committer | Eugene Sandulenko | 2017-01-25 22:41:57 +0100 |
| commit | ed4167832cdeb67ee21318e941f26bc495ce833b (patch) | |
| tree | 1de09d08a5043096fde5d5b724477a9075c4ada4 /engines/cryo/cryolib.cpp | |
| parent | 1e430a26f5057408f0b5ada9621e40a42325e50b (diff) | |
| download | scummvm-rg350-ed4167832cdeb67ee21318e941f26bc495ce833b.tar.gz scummvm-rg350-ed4167832cdeb67ee21318e941f26bc495ce833b.tar.bz2 scummvm-rg350-ed4167832cdeb67ee21318e941f26bc495ce833b.zip | |
CRYO: Some renaming in cryolib
Diffstat (limited to 'engines/cryo/cryolib.cpp')
| -rw-r--r-- | engines/cryo/cryolib.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/engines/cryo/cryolib.cpp b/engines/cryo/cryolib.cpp index 5a0ce8b4d2..19ba960b2b 100644 --- a/engines/cryo/cryolib.cpp +++ b/engines/cryo/cryolib.cpp @@ -414,7 +414,7 @@ void CLSound_PrepareSample(sound_t *sound, int16 mode) { sound->_loopTimes = 0; sound->_reversed = false; sound->ff_32 = 0; - sound->volume = 255; + sound->_volume = 255; } void CLSound_SetWantsDesigned(int16 designed) { } @@ -429,11 +429,11 @@ soundchannel_t *CLSoundChannel_New(int arg1) { if (!ch) return 0; - ch->volumeLeft = ch->volumeRight = 255; - ch->numSounds = 0; + ch->_volumeLeft = ch->_volumeRight = 255; + ch->_numSounds = 0; - for (i = 0; i < CL_MAX_CH_SOUNDS; i++) - ch->sounds[i] = 0; + for (i = 0; i < kCryoMaxChSounds; i++) + ch->_sounds[i] = 0; return ch; } @@ -446,23 +446,23 @@ void CLSoundChannel_Stop(soundchannel_t *ch) { void CLSoundChannel_Play(soundchannel_t *ch, sound_t *sound) { } int16 CLSoundChannel_GetVolume(soundchannel_t *ch) { - return (ch->volumeLeft + ch->volumeRight) / 2; + return (ch->_volumeLeft + ch->_volumeRight) / 2; } void CLSoundChannel_SetVolume(soundchannel_t *ch, int16 volume) { if (volume < 0 || volume > 255) return; - ch->volumeLeft = volume; - ch->volumeRight = volume; + ch->_volumeLeft = volume; + ch->_volumeRight = volume; } void CLSoundChannel_SetVolumeRight(soundchannel_t *ch, int16 volume) { if (volume < 0 || volume > 255) return; - ch->volumeRight = volume; + ch->_volumeRight = volume; } void CLSoundChannel_SetVolumeLeft(soundchannel_t *ch, int16 volume) { if (volume < 0 || volume > 255) return; - ch->volumeLeft = volume; + ch->_volumeLeft = volume; } ///// CLTimer |
