aboutsummaryrefslogtreecommitdiff
path: root/engines/cryo/cryolib.cpp
diff options
context:
space:
mode:
authorStrangerke2017-01-05 02:06:50 -0800
committerEugene Sandulenko2017-01-25 22:42:21 +0100
commite20f65e5ea3eac8420fc5b54e5ad64d538b98148 (patch)
tree3eb4dcfafeef5b3c151f91acc26093cf1e9b1895 /engines/cryo/cryolib.cpp
parentad0616688c1d00c053c8d6a0d0e1eb188cddf5da (diff)
downloadscummvm-rg350-e20f65e5ea3eac8420fc5b54e5ad64d538b98148.tar.gz
scummvm-rg350-e20f65e5ea3eac8420fc5b54e5ad64d538b98148.tar.bz2
scummvm-rg350-e20f65e5ea3eac8420fc5b54e5ad64d538b98148.zip
CRYO: Get rid of sound's locked and forcewait, remove some dead code, renaming
Diffstat (limited to 'engines/cryo/cryolib.cpp')
-rw-r--r--engines/cryo/cryolib.cpp18
1 files changed, 0 insertions, 18 deletions
diff --git a/engines/cryo/cryolib.cpp b/engines/cryo/cryolib.cpp
index 89404d0548..6b0ff64518 100644
--- a/engines/cryo/cryolib.cpp
+++ b/engines/cryo/cryolib.cpp
@@ -32,27 +32,13 @@
namespace Cryo {
///// Mac APIs
-typedef int16 OSErr;
void SysBeep(int x) {
}
-OSErr SetFPos(int16 handle, int16 mode, int32 pos) {
- return 0;
-}
-
-OSErr FSRead(int16 handle, int32 *size, void *buffer) {
- return 0;
-}
-
void FlushEvents(int16 arg1, int16 arg2) {
}
-// from mw lib???
-int32 TickCount() {
- return g_system->getMillis();
-}
-
///// CLView
View::View(CryoEngine *vm, int w, int h) : _vm(vm) {
@@ -349,7 +335,6 @@ Sound::Sound(int16 length, float rate, int16 sampleSize, int16 mode) {
_length = 0;
_mode = 0;
- _locked = 0;
_loopStart = 0;
_loopTimes = 0;
_reversed = false;
@@ -367,8 +352,6 @@ Sound::Sound(int16 length, float rate, int16 sampleSize, int16 mode) {
}
Sound::~Sound() {
- while (_locked)
- ;
}
void CLSoundRaw_AssignBuffer(Sound *sound, void *buffer, int bufferOffs, int length) {
@@ -384,7 +367,6 @@ void CLSoundRaw_AssignBuffer(Sound *sound, void *buffer, int bufferOffs, int len
void Sound::prepareSample(int16 mode) {
_mode = mode;
- _locked = 0;
_loopTimes = 0;
_reversed = false;
_unused32 = 0;