diff options
author | Alexey Yakovenko <wakeroid@gmail.com> | 2009-12-26 14:10:05 +0100 |
---|---|---|
committer | Alexey Yakovenko <wakeroid@gmail.com> | 2009-12-26 14:10:05 +0100 |
commit | 671034231d04a385592d97781be1a25b4f2de490 (patch) | |
tree | dfcda2737590eb902f8455e2a4454755a573b790 | |
parent | 54831e4cd6a00d4d903b9254862881a92285ced5 (diff) |
wavpack: added bitrate display
-rw-r--r-- | plugins/wavpack/wavpack.c | 4 |
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; } |