Increased sound buffer size to avoid some skipping issues, and re-added a timer callback that had somehow gotten lost

svn-id: r29542
This commit is contained in:
Oystein Eftevaag 2007-11-18 01:14:20 +00:00
parent dbbce1985a
commit ee4d7dc54d
2 changed files with 3 additions and 2 deletions

View File

@ -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;

View File

@ -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);