mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-15 06:08:35 +00:00
KYRA: Make pointers to VQAHeader const
This is just to enforce the idea that VQADecoder owns the VQAHeader and that the audio/video tracks are only allowed to look at it, not change it.
This commit is contained in:
parent
16d36224e2
commit
18ef3ed6b3
@ -282,7 +282,7 @@ void VQADecoder::readNextPacket() {
|
||||
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
VQADecoder::VQAAudioTrack::VQAAudioTrack(VQAHeader *header) {
|
||||
VQADecoder::VQAAudioTrack::VQAAudioTrack(const VQAHeader *header) {
|
||||
_audioStream = Audio::makeQueuingAudioStream(header->freq, false);
|
||||
}
|
||||
|
||||
@ -395,7 +395,7 @@ void VQADecoder::VQAAudioTrack::handleSND2(Common::SeekableReadStream *stream) {
|
||||
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
VQADecoder::VQAVideoTrack::VQAVideoTrack(VQAHeader *header) {
|
||||
VQADecoder::VQAVideoTrack::VQAVideoTrack(const VQAHeader *header) {
|
||||
memset(_palette, 0, sizeof(_palette));
|
||||
_dirtyPalette = false;
|
||||
|
||||
|
@ -80,7 +80,7 @@ private:
|
||||
|
||||
class VQAAudioTrack : public AudioTrack {
|
||||
public:
|
||||
VQAAudioTrack(VQAHeader *header);
|
||||
VQAAudioTrack(const VQAHeader *header);
|
||||
~VQAAudioTrack();
|
||||
|
||||
void handleSND0(Common::SeekableReadStream *stream);
|
||||
@ -96,7 +96,7 @@ private:
|
||||
|
||||
class VQAVideoTrack : public FixedRateVideoTrack {
|
||||
public:
|
||||
VQAVideoTrack(VQAHeader *header);
|
||||
VQAVideoTrack(const VQAHeader *header);
|
||||
~VQAVideoTrack();
|
||||
|
||||
uint16 getWidth() const;
|
||||
|
Loading…
Reference in New Issue
Block a user