- Changed compilation for g_doom, g_heretic, g_hexen and g_strife folders
so that all files are included by a central one instead of compiling each one separately. This speeds up the compilation process by 25% when doing a complete rebuild in Visual C. - Cleaned up more header dependencies. SVN r1226 (trunk)
This commit is contained in:
parent
b07542ddd6
commit
760f70d3f1
171 changed files with 1667 additions and 250 deletions
|
|
@ -52,6 +52,7 @@ extern HWND Window;
|
|||
#include "w_wad.h"
|
||||
#include "i_music.h"
|
||||
#include "v_text.h"
|
||||
#include "v_video.h"
|
||||
#include "v_palette.h"
|
||||
|
||||
// MACROS ------------------------------------------------------------------
|
||||
|
|
@ -2147,7 +2148,6 @@ float F_CALLBACK FMODSoundRenderer::RolloffCallback(FMOD_CHANNEL *channel, float
|
|||
void FMODSoundRenderer::DrawWaveDebug(int mode)
|
||||
{
|
||||
const int window_height = 100;
|
||||
float wavearray[MAXWIDTH];
|
||||
int window_size;
|
||||
int numoutchans;
|
||||
int y;
|
||||
|
|
@ -2161,6 +2161,8 @@ void FMODSoundRenderer::DrawWaveDebug(int mode)
|
|||
// 16 pixels of padding between each window.
|
||||
window_size = (screen->GetWidth() - 16) / numoutchans - 16;
|
||||
|
||||
float *wavearray = (float*)alloca(window_size*sizeof(float));
|
||||
|
||||
y = 16;
|
||||
y = DrawChannelGroupOutput(SfxGroup, wavearray, window_size, window_height, y, mode);
|
||||
y = DrawChannelGroupOutput(MusicGroup, wavearray, window_size, window_height, y, mode >> 2);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue