source: roaraudio/roarfish/roarfish.c @ 365:55a96f873841

Last change on this file since 365:55a96f873841 was 12:78dfd1b91bcc, checked in by phi, 16 years ago

added playback code

File size: 462 bytes
Line 
1//roarfish.c:
2
3#include "roarfish.h"
4
5void usage (void) {
6 printf("Usage: roarfish COMMAND FILE [OPTIONS]\n");
7 printf("\nCOMMANDS:\n");
8 printf("play          - plays a file\n"
9       );
10}
11
12int main (int argc, char * argv[]) {
13// int i;
14 char * command, * file;
15
16 if ( argc < 3 ) {
17  usage();
18  return 1;
19 }
20
21 command = argv[1];
22 file    = argv[2];
23
24 if ( !strcmp(command, "play") ) {
25  play(file, NULL);
26 } else {
27  usage();
28  return 1;
29 }
30
31 return 0;
32}
33
34//ll
Note: See TracBrowser for help on using the repository browser.