diff options
author | Oystein Eftevaag | 2007-11-18 01:14:20 +0000 |
---|---|---|
committer | Oystein Eftevaag | 2007-11-18 01:14:20 +0000 |
commit | ee4d7dc54d252cd98f0d902946d083c31440d287 (patch) | |
tree | 497d0aaed93fca23742984a94786fd58031d0cd8 /backends | |
parent | dbbce1985aee049e5bb1690ec9d8368934a4d6a7 (diff) | |
download | scummvm-rg350-ee4d7dc54d252cd98f0d902946d083c31440d287.tar.gz scummvm-rg350-ee4d7dc54d252cd98f0d902946d083c31440d287.tar.bz2 scummvm-rg350-ee4d7dc54d252cd98f0d902946d083c31440d287.zip |
Increased sound buffer size to avoid some skipping issues, and re-added a timer callback that had somehow gotten lost
svn-id: r29542
Diffstat (limited to 'backends')
-rw-r--r-- | backends/platform/iphone/osys_iphone.cpp | 3 | ||||
-rw-r--r-- | backends/platform/iphone/osys_iphone.h | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/backends/platform/iphone/osys_iphone.cpp b/backends/platform/iphone/osys_iphone.cpp index cc69d85c61..6f1d82fb2c 100644 --- a/backends/platform/iphone/osys_iphone.cpp +++ b/backends/platform/iphone/osys_iphone.cpp @@ -491,6 +491,7 @@ bool OSystem_IPHONE::pollEvent(Common::Event &event) { long curTime = getMillis(); if (_timerCallback && (curTime >= _timerCallbackNext)) { + _timerCallback(_timerCallbackTimer); _timerCallbackNext = curTime + _timerCallbackTimer; } @@ -606,7 +607,7 @@ bool OSystem_IPHONE::pollEvent(Common::Event &event) { break; case kInputMouseSecondToggled: _secondaryTapped = !_secondaryTapped; - //printf("Mouse second at (%u, %u). State now %s.\n", x, y, _secondaryTapped ? "on" : "off"); + printf("Mouse second at (%u, %u). State now %s.\n", x, y, _secondaryTapped ? "on" : "off"); if (_secondaryTapped) { _lastSecondaryDown = curTime; _gestureStartX = x; diff --git a/backends/platform/iphone/osys_iphone.h b/backends/platform/iphone/osys_iphone.h index 3ee38e62fb..9abd8657e7 100644 --- a/backends/platform/iphone/osys_iphone.h +++ b/backends/platform/iphone/osys_iphone.h @@ -28,7 +28,7 @@ #include "graphics/surface.h" #define AUDIO_BUFFERS 3 -#define WAVE_BUFFER_SIZE 735 +#define WAVE_BUFFER_SIZE 2048 #define AUDIO_SAMPLE_RATE 44100 typedef void (*SoundProc)(void *param, byte *buf, int len); |