shader sync toimii

This commit is contained in:
2025-06-24 15:54:17 +03:00
parent 47cb2c965f
commit 134a85111e
11 changed files with 992 additions and 791 deletions

View File

@ -13,6 +13,8 @@
#define SU_LENGTH_IN_PATTERNS 108
#define SU_LENGTH_IN_ROWS (SU_LENGTH_IN_PATTERNS*SU_PATTERN_SIZE)
#define SU_SAMPLES_PER_ROW (SU_SAMPLE_RATE*60/(SU_BPM*SU_ROWS_PER_BEAT))
#define SU_NUMSYNCS 6
#define SU_SYNCBUFFER_LENGTH ((SU_LENGTH_IN_SAMPLES+255)>>8)*SU_NUMSYNCS
#include <stdint.h>
#if UINTPTR_MAX == 0xffffffff
@ -33,6 +35,7 @@ typedef float SUsample;
#ifdef __cplusplus
extern "C" {
#endif
#define SU_SYNC
void SU_CALLCONV su_render_song(SUsample *buffer);