mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-01 08:23:15 +00:00
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:
parent
dbbce1985a
commit
ee4d7dc54d
@ -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;
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user