add ogg and vorbis to standalone scanner framework

This commit is contained in:
Ron Pedde 2005-04-17 22:06:59 +00:00
parent b06aad7e49
commit 2d208dc30b
2 changed files with 9 additions and 4 deletions

View File

@ -30,7 +30,8 @@
* externs
*/
extern int scan_get_wmainfo(char *filename, MP3FILE *pmp3);
extern int scan_get_ogginfo(char *filename, MP3FILE *pmp3);
extern int scan_get_flacinfo(char *filename, MP3FILE *pmp3);
/*
* Typedefs
@ -46,6 +47,9 @@ typedef struct scannerlist_tag {
*/
SCANNERLIST scanner_list[] = {
{ "wma",scan_get_wmainfo },
{ "flac",scan_get_flacinfo },
{ "fla",scan_get_flacinfo },
{ "ogg",scan_get_ogginfo },
{ NULL, NULL }
};
char *av0;

View File

@ -1,6 +1,7 @@
CC=gcc
CFLAGS=-g
CFLAGS := $(CFLAGS) -g
LDFLAGS := $(LDFLAGS) -logg -lvorbisfile -lFLAC
scanner: scanner-driver.o restart.o wma.o err.o
$(CC) -o scanner scanner-driver.o restart.o wma.o err.o
scanner: scanner-driver.o restart.o wma.o err.o flac.o ogg.o
$(CC) -o scanner $(LDFLAGS) scanner-driver.o restart.o wma.o err.o flac.o ogg.o