• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/iserver/forked-daapd-0.19/src/

Lines Matching defs:pmp3

271 int wma_parse_content_description(int fd,int size, MP3FILE *pmp3);
272 int wma_parse_extended_content_description(int fd,int size, MP3FILE *pmp3, int extended);
273 int wma_parse_file_properties(int fd,int size, MP3FILE *pmp3);
274 int wma_parse_audio_media(int fd, int size, MP3FILE *pmp3);
275 int wma_parse_stream_properties(int fd, int size, MP3FILE *pmp3);
276 int wma_parse_header_extension(int fd, int size, MP3FILE *pmp3);
366 int wma_parse_header_extension(int fd, int size, MP3FILE *pmp3) {
411 if(!wma_parse_extended_content_description(fd,size,pmp3,1))
433 * @param pmp3 the mp3 struct we are filling with gleaned data
435 int wma_parse_stream_properties(int fd, int size, MP3FILE *pmp3) {
457 return wma_parse_audio_media(fd,size - sizeof(WMA_STREAM_PROP),pmp3);
467 * @param pmp3 the mp3 struct we are filling with gleaned data
469 int wma_parse_audio_media(int fd, int size, MP3FILE *pmp3) {
483 MAYBEFREE(pmp3->codectype);
484 pmp3->codectype = strdup("wmav"); /* voice */
487 MAYBEFREE(pmp3->codectype);
488 MAYBEFREE(pmp3->type);
489 pmp3->codectype = strdup("wma"); /* pro */
490 pmp3->type = strdup("wmap");
493 MAYBEFREE(pmp3->codectype);
494 pmp3->codectype = strdup("wmal"); /* lossless */
500 if(!wma_file_read_int(fd,(unsigned int *)&pmp3->samplerate))
512 * @param pmp3 the mp3 struct we are filling with gleaned data
514 int wma_parse_extended_content_description(int fd,int size, MP3FILE *pmp3, int extended) {
636 MAYBEFREE(pmp3->genre);
637 pmp3->genre = descriptor_byte_value;
640 MAYBEFREE(pmp3->album);
641 pmp3->album = descriptor_byte_value;
647 pmp3->rating = descriptor_int_value;
648 if(pmp3->rating == 99) {
649 pmp3->rating = 100;
651 if(pmp3->rating) {
652 pmp3->rating = ((pmp3->rating / 25) + 1) * 20;
658 pmp3->year = atoi(descriptor_byte_value);
661 if(!pmp3->composer) {
662 pmp3->composer = descriptor_byte_value;
665 size = (int)strlen(pmp3->composer) + 1 +
670 sprintf(tmp,"%s/%s",pmp3->composer,descriptor_byte_value);
671 free(pmp3->composer);
672 pmp3->composer=tmp;
676 if(!pmp3->album_artist) {
677 pmp3->album_artist = descriptor_byte_value;
682 if(!pmp3->artist) {
683 pmp3->artist = descriptor_byte_value;
687 MAYBEFREE(pmp3->grouping);
688 pmp3->grouping = descriptor_byte_value;
691 MAYBEFREE(pmp3->comment);
692 pmp3->comment = descriptor_byte_value;
706 pmp3->track = tracknumber;
708 pmp3->track = track;
711 if((!pmp3->artist) && (pmp3->orchestra)) {
712 pmp3->artist = strdup(pmp3->orchestra);
715 if((pmp3->artist) && (!pmp3->orchestra)) {
716 pmp3->orchestra = strdup(pmp3->artist);
729 * @param pmp3 the mp3 struct we are filling with gleaned data
731 int wma_parse_content_description(int fd,int size, MP3FILE *pmp3) {
753 if(pmp3->title)
754 free(pmp3->title);
755 pmp3->title = utf8;
758 if(pmp3->artist)
759 free(pmp3->artist);
760 pmp3->artist = utf8;
766 if(pmp3->comment)
767 free(pmp3->comment);
768 pmp3->comment = utf8;
789 * @param pmp3 the mp3 struct we are filling with gleaned data
791 int wma_parse_file_properties(int fd,int size, MP3FILE *pmp3) {
820 pmp3->song_length = (int)((play_duration / 10000) - preroll);
830 pmp3->bitrate = max_bitrate/1000;
986 * @param pmp3 MP3FILE struct to be filled with with metainfo
988 int scan_get_wmainfo(char *filename, MP3FILE *pmp3) {
1059 res &= wma_parse_content_description(fd,(int)subhdr.size,pmp3);
1061 res &= wma_parse_extended_content_description(fd,(int)subhdr.size,pmp3,0);
1063 res &= wma_parse_file_properties(fd,(int)subhdr.size,pmp3);
1065 res &= wma_parse_audio_media(fd,(int)subhdr.size,pmp3);
1067 res &= wma_parse_stream_properties(fd,(int)subhdr.size,pmp3);
1069 res &= wma_parse_header_extension(fd,(int)subhdr.size,pmp3);
1101 if(pmp3->codectype)
1102 free(pmp3->codectype);
1104 pmp3->codectype=strdup("wmap");