diff options
author | waker <wakeroid@gmail.com> | 2011-01-09 22:28:25 +0100 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2011-01-09 22:28:25 +0100 |
commit | 822c99debf259c6648654143abc9d772ea447f73 (patch) | |
tree | 944e2e45062017de6c50f82fb1c04fc6a7c8211d /plugins/wavpack/wavpack.c | |
parent | 4cafabddc5640c3f3ed9d6653d9ae1b427c9a24f (diff) |
added file size to wavpack track properties
Diffstat (limited to 'plugins/wavpack/wavpack.c')
-rw-r--r-- | plugins/wavpack/wavpack.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/wavpack/wavpack.c b/plugins/wavpack/wavpack.c index 26889237..ac1d4071 100644 --- a/plugins/wavpack/wavpack.c +++ b/plugins/wavpack/wavpack.c @@ -314,6 +314,8 @@ wv_insert (DB_playItem_t *after, const char *fname) { deadbeef->pl_add_meta (it, "title", NULL); char s[100]; + snprintf (s, sizeof (s), "%d bytes", deadbeef->fgetlength (fp)); + deadbeef->pl_add_meta (it, ":FILE_SIZE", s); snprintf (s, sizeof (s), "%d", WavpackGetBytesPerSample (ctx) * 8); deadbeef->pl_add_meta (it, ":BPS", s); snprintf (s, sizeof (s), "%d", WavpackGetNumChannels (ctx)); |