Mercurial > audlegacy
comparison Plugins/Input/flac/tag.c @ 1305:c81735c068c6 trunk
[svn] - fix tuple building for FLAC files
author | nenolod |
---|---|
date | Sun, 18 Jun 2006 23:53:16 -0700 |
parents | 0423885a75f8 |
children | f12d7e208b43 |
comparison
equal
deleted
inserted
replaced
1304:46005e4bb063 | 1305:c81735c068c6 |
---|---|
115 input->year = local__getnum(date); | 115 input->year = local__getnum(date); |
116 input->genre = local__getstr(genre); | 116 input->genre = local__getstr(genre); |
117 input->comment = local__getstr(description); | 117 input->comment = local__getstr(description); |
118 | 118 |
119 input->file_name = g_path_get_basename(filename_proxy); | 119 input->file_name = g_path_get_basename(filename_proxy); |
120 input->file_path = filename_proxy; | 120 input->file_path = g_path_get_dirname(filename_proxy); |
121 input->file_ext = local__extname(filename_proxy); | 121 input->file_ext = local__extname(filename_proxy); |
122 | 122 |
123 FLAC__metadata_get_streaminfo(filename, &info); | 123 FLAC__metadata_get_streaminfo(filename, &info); |
124 | 124 |
125 input->length = (unsigned)((double)info.data.stream_info.total_samples / (double)info.data.stream_info.sample_rate * 1000.0 + 0.5); | 125 input->length = (unsigned)((double)info.data.stream_info.total_samples / (double)info.data.stream_info.sample_rate * 1000.0 + 0.5); |