GOB: const correctness in SoundBlaster::playComposition()
This commit is contained in:
parent
dd35e72a7e
commit
2d05974b5c
5 changed files with 6 additions and 6 deletions
|
@ -119,7 +119,7 @@ void Inter_Bargon::oBargon_intro2(OpGobParams ¶ms) {
|
|||
MouseButtons buttons;
|
||||
SurfacePtr surface;
|
||||
SoundDesc samples[4];
|
||||
int16 comp[5] = { 0, 1, 2, 3, -1 };
|
||||
static const int16 comp[5] = { 0, 1, 2, 3, -1 };
|
||||
static const char *const sndFiles[] = {"1INTROII.snd", "2INTROII.snd", "1INTRO3.snd", "2INTRO3.snd"};
|
||||
|
||||
surface = _vm->_video->initSurfDesc(320, 200);
|
||||
|
@ -167,8 +167,8 @@ void Inter_Bargon::oBargon_intro3(OpGobParams ¶ms) {
|
|||
MouseButtons buttons;
|
||||
Video::Color *palBak;
|
||||
SoundDesc samples[2];
|
||||
int16 comp[3] = { 0, 1, -1 };
|
||||
byte *palettes[4];
|
||||
static const int16 comp[3] = { 0, 1, -1 };
|
||||
static const char *const sndFiles[] = {"1INTROIV.snd", "2INTROIV.snd"};
|
||||
static const char *const palFiles[] = {"2ou2.clt", "2ou3.clt", "2ou4.clt", "2ou5.clt"};
|
||||
|
||||
|
|
|
@ -458,7 +458,7 @@ void Sound::blasterStop(int16 fadeLength, SoundDesc *sndDesc) {
|
|||
_blaster->stopSound(fadeLength, sndDesc);
|
||||
}
|
||||
|
||||
void Sound::blasterPlayComposition(int16 *composition, int16 freqVal,
|
||||
void Sound::blasterPlayComposition(const int16 *composition, int16 freqVal,
|
||||
SoundDesc *sndDescs, int8 sndCount) {
|
||||
if (!_blaster)
|
||||
return;
|
||||
|
|
|
@ -60,7 +60,7 @@ public:
|
|||
int16 frequency, int16 fadeLength = 0);
|
||||
void blasterStop(int16 fadeLength, SoundDesc *sndDesc = 0);
|
||||
|
||||
void blasterPlayComposition(int16 *composition, int16 freqVal,
|
||||
void blasterPlayComposition(const int16 *composition, int16 freqVal,
|
||||
SoundDesc *sndDescs = 0, int8 sndCount = kSoundsCount);
|
||||
void blasterStopComposition();
|
||||
void blasterRepeatComposition(int32 repCount);
|
||||
|
|
|
@ -88,7 +88,7 @@ void SoundBlaster::nextCompositionPos() {
|
|||
_compositionPos = -1;
|
||||
}
|
||||
|
||||
void SoundBlaster::playComposition(int16 *composition, int16 freqVal,
|
||||
void SoundBlaster::playComposition(const int16 *composition, int16 freqVal,
|
||||
SoundDesc *sndDescs, int8 sndCount) {
|
||||
|
||||
_compositionSamples = sndDescs;
|
||||
|
|
|
@ -41,7 +41,7 @@ public:
|
|||
int16 frequency, int16 fadeLength = 0);
|
||||
void stopSound(int16 fadeLength, SoundDesc *sndDesc = 0);
|
||||
|
||||
void playComposition(int16 *composition, int16 freqVal,
|
||||
void playComposition(const int16 *composition, int16 freqVal,
|
||||
SoundDesc *sndDescs = 0, int8 sndCount = 60);
|
||||
void stopComposition();
|
||||
void endComposition();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue