summaryrefslogtreecommitdiff
path: root/plugins/wavpack
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2009-12-26 14:10:05 +0100
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2009-12-26 14:10:05 +0100
commit671034231d04a385592d97781be1a25b4f2de490 (patch)
treedfcda2737590eb902f8455e2a4454755a573b790 /plugins/wavpack
parent54831e4cd6a00d4d903b9254862881a92285ced5 (diff)
wavpack: added bitrate display
Diffstat (limited to 'plugins/wavpack')
-rw-r--r--plugins/wavpack/wavpack.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/wavpack/wavpack.c b/plugins/wavpack/wavpack.c
index cdb26776..44aec9ea 100644
--- a/plugins/wavpack/wavpack.c
+++ b/plugins/wavpack/wavpack.c
@@ -160,6 +160,9 @@ wv_read_int16 (char *bytes, int size) {
n--;
}
plugin.info.readpos = (float)(WavpackGetSampleIndex (wvctx.ctx)-wvctx.startsample)/WavpackGetSampleRate (wvctx.ctx);
+
+ deadbeef->streamer_set_bitrate (WavpackGetInstantBitrate (wvctx.ctx) / 1000);
+
return size;
}
@@ -188,6 +191,7 @@ wv_read_float32 (char *bytes, int size) {
n--;
}
plugin.info.readpos = (float)(WavpackGetSampleIndex (wvctx.ctx)-wvctx.startsample)/WavpackGetSampleRate (wvctx.ctx);
+ deadbeef->streamer_set_bitrate (WavpackGetInstantBitrate (wvctx.ctx) / 1000);
return size;
}