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

@ -34,7 +34,7 @@ static const PIXELFORMATDESCRIPTOR pfd = {
};
#pragma data_seg(".screensettings")
static DEVMODE screenSettings = {
static DEVMODE screenSettings = {
{0}, 0, 0, sizeof(screenSettings), 0, DM_PELSWIDTH|DM_PELSHEIGHT,
{0}, 0, 0, 0, 0, 0, {0}, 0, 0, XRES, YRES, 0, 0,
#if(WINVER >= 0x0400)
@ -49,33 +49,29 @@ static DEVMODE screenSettings = {
#include <mmsystem.h>
#include <mmreg.h>
// this file is auto generated by 4klang
#include "4klang/4klang.h"
// this file is auto generated by sointu
#include "sointu/song.h"
#pragma data_seg(".4klangout")
static SAMPLE_TYPE lpSoundBuffer[MAX_SAMPLES * 2];
#pragma data_seg(".sointuout")
static SUsample lpSoundBuffer[(int)SU_LENGTH_IN_SAMPLES * 2];
static HWAVEOUT hWaveOut;
#pragma data_seg(".wavefmt")
static WAVEFORMATEX WaveFMT =
{
#ifdef FLOAT_32BIT
WAVE_FORMAT_IEEE_FLOAT,
#else
WAVE_FORMAT_PCM,
#endif
2, // channels
SAMPLE_RATE, // samples per sec
SAMPLE_RATE*sizeof(SAMPLE_TYPE) * 2, // bytes per sec
sizeof(SAMPLE_TYPE) * 2, // block alignment;
sizeof(SAMPLE_TYPE) * 8, // bits per sample
0 // extension not needed
2, // channels
SU_SAMPLE_RATE, // samples per sec
SU_SAMPLE_RATE*sizeof(SUsample) * 2, // bytes per sec
sizeof(SUsample) * 2, // block alignment;
sizeof(SUsample) * 8, // bits per sample
0 // extension not needed
};
#pragma data_seg(".wavehdr")
static WAVEHDR WaveHDR =
{
(LPSTR)lpSoundBuffer, MAX_SAMPLES * sizeof(SAMPLE_TYPE) * 2, 0, 0, 0, 0, 0, 0
(LPSTR)lpSoundBuffer, SU_LENGTH_IN_SAMPLES * sizeof(SUsample) * 2, 0, 0, 0, 0, 0, 0
};
static MMTIME MMTime =