Improve the windows respond by using thread
[QFreeRecite.git] / src / aplay / aplay.c
blob725327ac99f0129ff919e6a4164ff80b31856291
1 // compiling with mingw: gcc -mwindows playsound.c -lwinmm -o playsound.exe
2 // strip playsound.exe
3 #include <windows.h>
4 #include <stdio.h>
6 int main(int argc, char* argv[]) {
7 if (argc == 1) {
8 printf ("%s <soundfile>\n", argv[0]);
9 exit(0);
12 if (!PlaySound(argv[1], 0, SND_FILENAME)) {
13 printf ("error playing file\n");
15 return 0;