diff options
Diffstat (limited to 'engines/kyra/sound.h')
-rw-r--r-- | engines/kyra/sound.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/engines/kyra/sound.h b/engines/kyra/sound.h index 7b7fba8e3a..565e02e917 100644 --- a/engines/kyra/sound.h +++ b/engines/kyra/sound.h @@ -224,9 +224,11 @@ public: */ void voiceStop(const char *file = 0); protected: - const char *fileListEntry(int file) const { return (_soundDataList != 0 && file >= 0 && file < _soundDataList->_fileListLen) ? _soundDataList->_fileList[file] : ""; } - const void *cdaData() const { return _soundDataList != 0 ? _soundDataList->_cdaTracks : 0; } - int cdaTrackNum() const { return _soundDataList != 0 ? _soundDataList->_cdaNumTracks : 0; } + const char *fileListEntry(int file) const { return (_soundDataList != 0 && file >= 0 && file < _soundDataList->fileListLen) ? _soundDataList->fileList[file] : ""; } + int fileListLen() const { return _soundDataList->fileListLen; } + const void *cdaData() const { return _soundDataList != 0 ? _soundDataList->cdaTracks : 0; } + int cdaTrackNum() const { return _soundDataList != 0 ? _soundDataList->cdaNumTracks : 0; } + int extraOffset() const { return _soundDataList != 0 ? _soundDataList->extraOffset : 0; } enum { kNumChannelHandles = 4 |