Mercurial > audlegacy-plugins
comparison src/vorbis/vorbis.c @ 2211:2a13a038987c
vorbis: bitrate field added
author | Eugene Zagidullin <e.asphyx@gmail.com> |
---|---|
date | Thu, 06 Dec 2007 03:54:59 +0300 |
parents | d0ede319f7b9 |
children | a13b8f308dce |
comparison
equal
deleted
inserted
replaced
2210:d0ede319f7b9 | 2211:2a13a038987c |
---|---|
629 else | 629 else |
630 length = ov_time_total(vorbisfile, -1) * 1000; | 630 length = ov_time_total(vorbisfile, -1) * 1000; |
631 | 631 |
632 /* associate with tuple */ | 632 /* associate with tuple */ |
633 aud_tuple_associate_int(tuple, FIELD_LENGTH, NULL, length); | 633 aud_tuple_associate_int(tuple, FIELD_LENGTH, NULL, length); |
634 /* maybe, it would be better to display nominal bitrate (like in main win), not average? --eugene */ | |
635 aud_tuple_associate_int(tuple, FIELD_BITRATE, NULL, ov_bitrate(vorbisfile, -1)/1000); | |
634 | 636 |
635 if ((comment = ov_comment(vorbisfile, -1))) { | 637 if ((comment = ov_comment(vorbisfile, -1))) { |
636 gchar *tmps; | 638 gchar *tmps; |
637 _aud_tuple_associate_string(tuple, FIELD_TITLE, NULL, vorbis_comment_query(comment, "title", 0)); | 639 _aud_tuple_associate_string(tuple, FIELD_TITLE, NULL, vorbis_comment_query(comment, "title", 0)); |
638 _aud_tuple_associate_string(tuple, FIELD_ARTIST, NULL, vorbis_comment_query(comment, "artist", 0)); | 640 _aud_tuple_associate_string(tuple, FIELD_ARTIST, NULL, vorbis_comment_query(comment, "artist", 0)); |