diff options
author | Daniel Friesel <derf@finalrewind.org> | 2011-12-24 03:04:45 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2011-12-24 03:04:45 +0100 |
commit | ef06f59cb716f494dfd7348e01ffa8fd698967a0 (patch) | |
tree | b81f647a1d57c4cf3bf7b7922c96dc225e3f4dff /wiispkr.c | |
parent | 2c71143fd27ab876d7165df3f643bcad2664ccb0 (diff) |
Add wiiplay (wiiskpr wrapper with automatic conversion)
Diffstat (limited to 'wiispkr.c')
-rw-r--r-- | wiispkr.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -80,11 +80,11 @@ int main(int argc, char **argv) t = (tv.tv_sec * 1000000 + tv.tv_usec) / 100; if (t > timeout) { - printf("play second %f pos %d\n", (double)(t - start) / 10000, fpos); + printf("\r\033[2Kplay second %f pos %d", (double)(t - start) / 10000, fpos); + fflush(stdout); if ((readbytes = read(0, &sample, sizeof(sample))) == -1) return 0; fpos += readbytes; - print_sample(sample, sizeof(sample)); wiimote_speaker_play(&wiimote, sample, sizeof(sample)); timeout = t + 130; } |