22#if !defined(SCUMM_IMUSE_DIGI_FILES_H) && defined(ENABLE_SCUMM_7_8)
23#define SCUMM_IMUSE_DIGI_FILES_H
25#include "common/scummsys.h"
26#include "common/textconsole.h"
27#include "common/util.h"
28#include "scumm/resource.h"
29#include "scumm/file.h"
30#include "scumm/imuse_digi/dimuse_bndmgr.h"
31#include "scumm/imuse_digi/dimuse_sndmgr.h"
35class IMuseDigiFilesHandler {
38 IMuseDigital *_engine;
39 ImuseDigiSndMgr *_sound;
42 IMuseDigiSndBuffer _soundBuffers[4];
43 char _currentSpeechFilename[60] = {};
44 ScummFile *_ftSpeechFile;
45 char _ftSpeechFilename[160] = {};
46 int _ftSpeechSubFileOffset;
47 int _ftSpeechFileSize;
48 int _ftSpeechFileCurPos;
50 void getFilenameFromSoundId(
int soundId,
char *fileName,
size_t size);
52 IMuseDigiFilesHandler(IMuseDigital *engine, ScummEngine_v7 *vm);
53 ~IMuseDigiFilesHandler();
55 uint8 *getSoundAddrData(
int soundId);
56 int getSoundAddrDataSize(
int soundId,
bool hasStream);
57 int getNextSound(
int soundId);
58 int seek(
int soundId, int32 offset,
int mode,
int bufId);
59 int read(
int soundId, uint8 *buf, int32 size,
int bufId);
60 IMuseDigiSndBuffer *getBufInfo(
int bufId);
61 int openSound(
int soundId);
62 void closeSound(
int soundId);
63 void closeAllSounds();
64 void allocSoundBuffer(
int bufId, int32 size, int32 loadSize, int32 criticalSize);
65 void deallocSoundBuffer(
int bufId);
67 int setCurrentSpeechFilename(
const char *fileName);
68 void setCurrentFtSpeechFile(
const char *fileName, ScummFile *file, uint32 offset, uint32 size);
69 void closeSoundImmediatelyById(
int soundId);
Definition: serializer.h:80