add sointu, add song, update shader_minifier

This commit is contained in:
2025-06-23 20:49:20 +03:00
parent 076ee0be68
commit 47cb2c965f
19 changed files with 1425 additions and 1053 deletions

View File

@ -28,7 +28,9 @@
#pragma data_seg(".shader")
#include "shaders/post.inl"
#endif
#ifdef SU_LOAD_GMDLS
su_load_gmdls();
#endif // SU_LOAD_GMDLS
#pragma data_seg(".pids")
// static allocation saves a few bytes
static int pidMain;
@ -74,7 +76,7 @@ int __cdecl main(int argc, char* argv[])
// initialize sound
#ifndef EDITOR_CONTROLS
#if USE_AUDIO
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)_4klang_render, lpSoundBuffer, 0, 0);
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)su_render_song, lpSoundBuffer, 0, 0);
waveOutOpen(&hWaveOut, WAVE_MAPPER, &WaveFMT, NULL, 0, CALLBACK_NULL);
waveOutPrepareHeader(hWaveOut, &WaveHDR, sizeof(WaveHDR));
waveOutWrite(hWaveOut, &WaveHDR, sizeof(WaveHDR));
@ -154,7 +156,7 @@ int __cdecl main(int argc, char* argv[])
} while(!GetAsyncKeyState(VK_ESCAPE)
#if USE_AUDIO
&& MMTime.u.sample < MAX_SAMPLES
&& MMTime.u.sample < SU_LENGTH_IN_SAMPLES
#endif
);