Small tweaks to platform-dependent behaviour
This commit is contained in:
parent
c6f64773a7
commit
b6e9523895
|
@ -3,7 +3,6 @@
|
|||
#if defined(WIN32) || defined(USE_WINDOWS)
|
||||
#include <winsock2.h>
|
||||
#include <windows.h>
|
||||
#define strdup _strdup
|
||||
#endif
|
||||
|
||||
#include <ctype.h>
|
||||
|
@ -346,8 +345,12 @@ int main(int argc, char ** argv)
|
|||
|
||||
WSAStartup(0x202, &wsaData);
|
||||
|
||||
#ifdef TCC
|
||||
REGISTERWinCNFA();
|
||||
REGISTERcnfa_wasapi();
|
||||
strcpy( sound_source, "WASAPI" );
|
||||
#endif
|
||||
|
||||
strcpy( sound_source, "WASAPI" ); // Use either "sound_source=WASAPI" or "sound_source=WIN" in config file.
|
||||
#elif defined( ANDROID )
|
||||
strcpy( sound_source, "ANDROID" );
|
||||
|
||||
|
@ -449,7 +452,11 @@ int main(int argc, char ** argv)
|
|||
|
||||
Now = OGGetAbsoluteTime();
|
||||
double Last = Now;
|
||||
while( !headless )
|
||||
#ifdef ANDROID
|
||||
while(!bQuitColorChord)
|
||||
#else
|
||||
while(!headless)
|
||||
#endif
|
||||
{
|
||||
char stt[1024];
|
||||
//Handle Rawdraw frame swappign
|
||||
|
|
|
@ -19,4 +19,5 @@ rem set CC=C:\tcc\i386-win32-tcc.exe
|
|||
rem set CC=C:\tcc\x86_64-win32-tcc.exe
|
||||
@echo on
|
||||
%CC% %CFLAGS% %INCLUDES% %ARCH_SPECIFIC% %SOURCES% %LDFLAGS% -o ..\colorchord.exe
|
||||
pause
|
||||
@echo off
|
||||
pause
|
Loading…
Reference in a new issue