Changeset 12:78dfd1b91bcc in roaraudio
- Timestamp:
- 06/18/08 20:37:48 (16 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- roarfish
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
roarfish/Makefile
r11 r12 1 1 TARGETS=roarfish 2 2 3 OBJ=roarfish.o 3 OBJ=roarfish.o play.o 4 4 5 5 #DEFINES = -DDEBUG 6 6 INCLUDE = -I../include -I./include 7 7 CFLAGS = -g -Wall -O2 $(DEFINES) $(INCLUDE) 8 LDFLAGS = -g -L../lib/ -lroar -lfishsound 8 LDFLAGS = -g -L../lib/ -lroar -lfishsound -loggz 9 9 10 10 all: ${TARGETS} -
roarfish/include/roarfish.h
r11 r12 4 4 #define _RAORFISH_H_ 5 5 6 #define __USE_XOPEN 7 6 8 #include <roaraudio.h> 9 10 #include <stdio.h> 11 #include <string.h> 12 #include <stdlib.h> 13 14 #include <limits.h> 15 #include <math.h> 16 17 #include <oggz/oggz.h> 18 #include <fishsound/fishsound.h> 19 #include <sndfile.h> 20 21 int play (char * file, char ** opts); 22 23 #ifdef __USE_SVID 24 #define MAXFLOAT HUGE 25 #endif 7 26 8 27 #endif -
roarfish/roarfish.c
r11 r12 3 3 #include "roarfish.h" 4 4 5 void usage (void) { 6 printf("Usage: roarfish COMMAND FILE [OPTIONS]\n"); 7 printf("\nCOMMANDS:\n"); 8 printf("play - plays a file\n" 9 ); 10 } 11 5 12 int 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 6 31 return 0; 7 32 }
Note: See TracChangeset
for help on using the changeset viewer.