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/cryolib.h | |
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/cryolib.h')
-rw-r--r-- | engines/cryo/cryolib.h | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/engines/cryo/cryolib.h b/engines/cryo/cryolib.h index 051e06b703..b6d72e303e 100644 --- a/engines/cryo/cryolib.h +++ b/engines/cryo/cryolib.h @@ -159,12 +159,24 @@ struct sound_t { #define kCryoMaxChSounds 10 -struct soundchannel_t { +class soundchannel_t { +private: int16 _volumeLeft; int16 _volumeRight; int16 _numSounds; sound_t *_sounds[kCryoMaxChSounds]; + +public: + soundchannel_t(int arg1); + ~soundchannel_t(); + + void stop(); + void play(sound_t *sound); + int16 getVolume(); + void setVolume(int16 volume); + void setVolumeRight(int16 volume); + void setVolumeLeft(int16 volume); }; sound_t *CLSoundRaw_New(int16 length, float rate, int16 sampleSize, int16 mode); @@ -202,15 +214,6 @@ void CLSound_PrepareSample(sound_t *sound, int16 mode); void CLSound_SetWantsDesigned(int16 designed); void CLSound_SetLength(sound_t *sound, int length); -soundchannel_t *CLSoundChannel_New(int arg1); -void CLSoundChannel_Free(soundchannel_t *ch); -void CLSoundChannel_Stop(soundchannel_t *ch); -void CLSoundChannel_Play(soundchannel_t *ch, sound_t *sound); -int16 CLSoundChannel_GetVolume(soundchannel_t *ch); -void CLSoundChannel_SetVolume(soundchannel_t *ch, int16 volume); -void CLSoundChannel_SetVolumeRight(soundchannel_t *ch, int16 volume); -void CLSoundChannel_SetVolumeLeft(soundchannel_t *ch, int16 volume); - void CRYOLib_ManagersInit(); void CRYOLib_ManagersDone(); |