* Add WAV file support.
This commit is contained in:
@ -105,7 +105,6 @@ _asf_read_media_stream(FILE *fp, struct song_metadata *psong, __u32 size)
|
||||
{
|
||||
case WMAV1:
|
||||
case WMAV2:
|
||||
printf("***** JM: bitrate: %d\n", psong->bitrate);
|
||||
if( psong->bitrate < 193000 )
|
||||
asprintf(&(psong->dlna_pn), "WMABASE");
|
||||
else
|
||||
|
@ -25,7 +25,6 @@
|
||||
* This file is derived from mt-daap project.
|
||||
*/
|
||||
|
||||
// _get_mp3tags
|
||||
static int
|
||||
_get_mp3tags(char *file, struct song_metadata *psong)
|
||||
{
|
||||
|
@ -28,6 +28,8 @@
|
||||
#include <stdlib.h>
|
||||
#include <stddef.h>
|
||||
#include <string.h>
|
||||
#include <fcntl.h>
|
||||
#include <unistd.h>
|
||||
#include <time.h>
|
||||
#include <iconv.h>
|
||||
#include <sys/time.h>
|
||||
@ -103,6 +105,7 @@ char *winamp_genre[] = {
|
||||
#include "tagutils-ogg.h"
|
||||
#include "tagutils-flc.h"
|
||||
#include "tagutils-asf.h"
|
||||
#include "tagutils-wav.h"
|
||||
|
||||
static int _get_tags(char *file, struct song_metadata *psong);
|
||||
static int _get_fileinfo(char *file, struct song_metadata *psong);
|
||||
@ -124,6 +127,7 @@ static taghandler taghandlers[] = {
|
||||
{ "flc", _get_flctags, _get_flcfileinfo },
|
||||
{ "ogg", 0, _get_oggfileinfo },
|
||||
{ "asf", 0, _get_asffileinfo },
|
||||
{ "wav", _get_wavtags, _get_wavfileinfo },
|
||||
{ NULL, 0 }
|
||||
};
|
||||
|
||||
@ -136,6 +140,7 @@ static taghandler taghandlers[] = {
|
||||
#include "tagutils-ogg.c"
|
||||
#include "tagutils-flc.c"
|
||||
#include "tagutils-asf.c"
|
||||
#include "tagutils-wav.c"
|
||||
|
||||
//*********************************************************************************
|
||||
// freetags()
|
||||
@ -157,6 +162,7 @@ freetags(struct song_metadata *psong)
|
||||
MAYBEFREE(psong->contributor_sort[role]);
|
||||
}
|
||||
MAYBEFREE(psong->grouping);
|
||||
MAYBEFREE(psong->mime);
|
||||
MAYBEFREE(psong->dlna_pn);
|
||||
MAYBEFREE(psong->tagversion);
|
||||
MAYBEFREE(psong->musicbrainz_albumid);
|
||||
|
@ -86,6 +86,7 @@ struct song_metadata {
|
||||
int lossless;
|
||||
int blockalignment;
|
||||
|
||||
char *mime; // MIME type
|
||||
char *dlna_pn; // DLNA Profile Name
|
||||
|
||||
char *tagversion;
|
||||
|
Reference in New Issue
Block a user