mirror of
https://github.com/vsariola/sointu.git
synced 2025-07-18 21:14:31 -04:00
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:
@ -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");
|
||||
|
Reference in New Issue
Block a user