diff options
author | Strangerke | 2016-10-04 22:54:08 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2017-01-25 22:41:57 +0100 |
commit | ec7d67d5c334027c3f45fbd4738395f5631d2877 (patch) | |
tree | 995469107b3791624b3a2f2809f3bb82f2b8ffa8 /engines/cryo/clsoundraw.cpp | |
parent | ed4167832cdeb67ee21318e941f26bc495ce833b (diff) | |
download | scummvm-rg350-ec7d67d5c334027c3f45fbd4738395f5631d2877.tar.gz scummvm-rg350-ec7d67d5c334027c3f45fbd4738395f5631d2877.tar.bz2 scummvm-rg350-ec7d67d5c334027c3f45fbd4738395f5631d2877.zip |
CRYO: Remove CryoLib debugging functions
Diffstat (limited to 'engines/cryo/clsoundraw.cpp')
-rw-r--r-- | engines/cryo/clsoundraw.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/engines/cryo/clsoundraw.cpp b/engines/cryo/clsoundraw.cpp index e28dd914a7..a80b49c944 100644 --- a/engines/cryo/clsoundraw.cpp +++ b/engines/cryo/clsoundraw.cpp @@ -26,7 +26,6 @@ namespace Cryo { sound_t *CLSoundRaw_New(int16 arg1, float rate, int16 sampleSize, int16 mode) { sound_t *sound; - CLBeginCheck; sound = (sound_t *)CLMemory_Alloc(sizeof(*sound)); if (sound) { @@ -44,15 +43,10 @@ sound_t *CLSoundRaw_New(int16 arg1, float rate, int16 sampleSize, int16 mode) { // else { CLSound_PrepareSample(sound, mode); - CLNoError; } - } else { - __libError = -1; - __osError = MemError(); - CLCheckError(); - } + } else + error("CLSoundRaw_New - Not enough memory"); - CLEndCheck; return sound; } |