I am using this as a helper program to call sounds through cygwin. Problem is its not calling sounds. Can anyone provide a little guidance. I am self taught so go slow in explination.
CODE
#include <stdio.h>
main
(int argc, char **argv)
{
char soundtest[128];
sprintf(soundtest, "cat %s > /dev/dsp", argv[1]);
system(soundtest);
return;
}