summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2009-12-25 15:19:19 +0100
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2009-12-25 15:19:19 +0100
commit959c05c80698a71233f8e87dc994a8442d0c2d43 (patch)
tree36ec31d0a6238aabea0078c873d2905e3199e9a3 /plugins
parentaf4102743ebd21bc7a8c8ba0d5564fe0e198e7c1 (diff)
experimental bitrate display
Diffstat (limited to 'plugins')
-rw-r--r--plugins/gtkui/gtkui.c6
-rw-r--r--plugins/mpgmad/mpgmad.c2
2 files changed, 4 insertions, 4 deletions
diff --git a/plugins/gtkui/gtkui.c b/plugins/gtkui/gtkui.c
index 322d0fc0..c6535055 100644
--- a/plugins/gtkui/gtkui.c
+++ b/plugins/gtkui/gtkui.c
@@ -104,10 +104,10 @@ update_songinfo (gpointer ctx) {
}
char sbitrate[20] = "";
-#if 0 // NOTE: do not enable that for stable branch yet
- int bitrate = streamer_get_bitrate ();
+#if 1
+ int bitrate = deadbeef->streamer_get_apx_bitrate ();
if (bitrate > 0) {
- snprintf (sbitrate, sizeof (sbitrate), "%d kbps ", bitrate);
+ snprintf (sbitrate, sizeof (sbitrate), " | %d kbps ", bitrate);
}
#endif
const char *spaused = deadbeef->get_output ()->state () == OUTPUT_STATE_PAUSED ? "Paused | " : "";
diff --git a/plugins/mpgmad/mpgmad.c b/plugins/mpgmad/mpgmad.c
index 567c8405..abee585b 100644
--- a/plugins/mpgmad/mpgmad.c
+++ b/plugins/mpgmad/mpgmad.c
@@ -792,7 +792,7 @@ cmp3_stream_frame (void) {
// synthesize single frame
mad_synth_frame(&synth,&frame);
buffer.decode_remaining = synth.pcm.length;
- deadbeef->playback_update_bitrate (frame.header.bitrate/1000);
+ deadbeef->streamer_set_bitrate (frame.header.bitrate/1000);
break;
}
return eof;