mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-13 07:58:04 +00:00
git-svn-id: https://svn.eduke32.com/eduke32@1110 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
21fef3e053
commit
60f1d42a94
5 changed files with 145 additions and 140 deletions
|
@ -184,13 +184,14 @@ endif
|
|||
|
||||
OURCFLAGS+= $(BUILDCFLAGS)
|
||||
|
||||
.SILENT:
|
||||
.PHONY: clean veryclean all utils enginelib editorlib
|
||||
|
||||
# TARGETS
|
||||
|
||||
UTILS=kextract$(EXESUFFIX) kgroup$(EXESUFFIX) transpal$(EXESUFFIX) wad2art$(EXESUFFIX) wad2map$(EXESUFFIX)
|
||||
|
||||
all: $(OBJ)/$(ENGINELIB) $(OBJ)/$(EDITORLIB)
|
||||
# all: $(OBJ)/$(ENGINELIB) $(OBJ)/$(EDITORLIB)
|
||||
utils: $(UTILS)
|
||||
|
||||
enginelib: $(OBJ)/$(ENGINELIB)
|
||||
|
|
|
@ -1544,25 +1544,25 @@ int handleevents(void)
|
|||
break;
|
||||
}
|
||||
break;
|
||||
/*
|
||||
case SDL_MOUSEWHEEL:
|
||||
initprintf("wheel y %d\n",ev.wheel.y);
|
||||
if (ev.wheel.y > 0)
|
||||
{
|
||||
mwheelup = totalclock;
|
||||
mouseb |= 16;
|
||||
if (mousepresscallback)
|
||||
mousepresscallback(5, 1);
|
||||
}
|
||||
if (ev.button.y < 0)
|
||||
{
|
||||
mwheeldown = totalclock;
|
||||
mouseb |= 32;
|
||||
if (mousepresscallback)
|
||||
mousepresscallback(6, 1);
|
||||
}
|
||||
break;
|
||||
*/
|
||||
/*
|
||||
case SDL_MOUSEWHEEL:
|
||||
initprintf("wheel y %d\n",ev.wheel.y);
|
||||
if (ev.wheel.y > 0)
|
||||
{
|
||||
mwheelup = totalclock;
|
||||
mouseb |= 16;
|
||||
if (mousepresscallback)
|
||||
mousepresscallback(5, 1);
|
||||
}
|
||||
if (ev.wheel.y < 0)
|
||||
{
|
||||
mwheeldown = totalclock;
|
||||
mouseb |= 32;
|
||||
if (mousepresscallback)
|
||||
mousepresscallback(6, 1);
|
||||
}
|
||||
break;
|
||||
*/
|
||||
#else
|
||||
case SDL_KEYDOWN:
|
||||
case SDL_KEYUP:
|
||||
|
|
|
@ -11442,12 +11442,15 @@ MAIN_LOOP_RESTART:
|
|||
}
|
||||
|
||||
{
|
||||
static unsigned int lastrender = 0;
|
||||
static unsigned int nextrender = 0;
|
||||
unsigned int j = getticks();
|
||||
|
||||
if (r_maxfps == 0 || j >= lastrender+g_FrameDelay)
|
||||
if (j > nextrender+g_FrameDelay)
|
||||
nextrender = j;
|
||||
|
||||
if (r_maxfps == 0 || j >= nextrender)
|
||||
{
|
||||
lastrender = j;
|
||||
nextrender += g_FrameDelay;
|
||||
displayrooms(screenpeek,i);
|
||||
displayrest(i);
|
||||
|
||||
|
|
|
@ -74,7 +74,7 @@ Modifications for JonoF's port by Jonathon Fowler (jonof@edgenetwk.com)
|
|||
#if defined(_WIN32)
|
||||
#define MixBufferSize (MV_GetBufferSize(MV_RequestedMixRate))
|
||||
#else
|
||||
#define MixBufferSize 512
|
||||
#define MixBufferSize (scale(512, MV_RequestedMixRate, 11025))
|
||||
#endif
|
||||
|
||||
#define NumberOfBuffers 16
|
||||
|
|
|
@ -25,6 +25,7 @@ Adapted to work with JonoF's port by James Bentler (bentler@cs.umn.edu)
|
|||
|
||||
#include "dsl.h"
|
||||
#include "compat.h"
|
||||
#include "pragmas.h"
|
||||
|
||||
#define _NEED_SDLMIXER 1
|
||||
#include "sdl_inc.h"
|
||||
|
@ -190,10 +191,10 @@ int DSL_BeginBufferedPlayback(char *BufferStart,
|
|||
46ms isn't bad
|
||||
*/
|
||||
|
||||
chunksize = 512;
|
||||
chunksize = scale(512, SampleRate, 11025);
|
||||
|
||||
if (SampleRate >= 16000) chunksize *= 2;
|
||||
if (SampleRate >= 32000) chunksize *= 2;
|
||||
// if (SampleRate >= 16000) chunksize *= 2;
|
||||
// if (SampleRate >= 32000) chunksize *= 2;
|
||||
|
||||
/*
|
||||
// SDL mixer does this already
|
||||
|
|
Loading…
Reference in a new issue