Add test for 16-bit output, also moving the testname for test_renderer into compiler definition to avoid rewriting it everytime.

This commit is contained in:
Veikko Sariola
2020-04-15 23:17:03 +03:00
parent cff4538b8c
commit 83e3ab165e
23 changed files with 28 additions and 71 deletions

View File

@ -3,17 +3,24 @@
extern void __stdcall _4klang_render();
extern int test_max_samples;
extern char test_name[];
int main(int argc, char* argv[]) {
FILE* f;
float* buf;
char filename[256];
int n;
float v;
int retval;
char test_name[] = TEST_NAME;
#ifndef GO4K_USE_16BIT_OUTPUT
float* buf;
float v;
buf = (float*)malloc(test_max_samples * 2 * sizeof(float));
#else
short* buf;
short v;
buf = (short*)malloc(test_max_samples * 2 * sizeof(short));
#endif
if (buf == NULL) {
printf("Could not allocate buffer\n");