diff options
Diffstat (limited to 'engines/cge/general.cpp')
-rw-r--r-- | engines/cge/general.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/engines/cge/general.cpp b/engines/cge/general.cpp index b9c10a7029..67068a9673 100644 --- a/engines/cge/general.cpp +++ b/engines/cge/general.cpp @@ -282,14 +282,6 @@ void sndSetVolume() { warning("STUB: SNDSetVolume"); } -void sndDigiStart(SmpInfo *PSmpInfo) { - warning("STUB: SNDDigitStart"); -} - -void sndDigiStop(SmpInfo *PSmpInfo) { - warning("STUB: SNDDigiStop"); -} - void sndMidiStart(uint8 *MIDFile) { warning("STUB: SNDMIDIStart"); } @@ -299,8 +291,10 @@ void sndMidiStop() { } DataCk *loadWave(XFile *file) { - warning("STUB: LoadWave"); - return NULL; + byte *data = (byte *)malloc(file->size()); + file->read(data, file->size()); + + return new DataCk(data, file->size()); } int takeEnum(const char **tab, const char *text) { @@ -331,9 +325,15 @@ int newRandom(int range) { return ((CGEEngine *)g_engine)->_randomSource.getRandomNumber(range - 1); } +DataCk::DataCk(byte *buf, int size) { + _buf = buf; + _ckSize = size; +} + DataCk::~DataCk() { if (_buf) free(_buf); } + } // End of namespace CGE |