Musepack Forums  

Go Back   Musepack Forums > Main > Tech

Reply
 
Thread Tools Search this Thread Display Modes
Old 22 December 2005, 11:22 pm   #1
Bob
Member
 
Join Date: Dec 2005
Posts: 7
Default determining bit rate during playback

I'd like to update the displayed bitrate while playing. I get m_info.average_bitrate fine but m_info.bitrate is 0. How do I get the current bitrate?
Bob is offline   Reply With Quote
Old 23 December 2005, 04:04 pm   #2
DEATH
foobar2000 developer
 
Join Date: Jul 2004
Posts: 4
Default

Use last parameter of mpc_decoder_decode (vbr_update_bits) to retrieve number of bits read per frame, which can be used for VBR display. It works as an accumulating counter (adds number of bits read to existing value of the variable).
DEATH is offline   Reply With Quote
Old 23 December 2005, 06:50 pm   #3
Bob
Member
 
Join Date: Dec 2005
Posts: 7
Default

So after a decode vbr_update_bits is the AVERAGE number of bits read for the number of samples decoded by mpc_decoder_decode? I'm getting a changing value in there (resetting vbr_update_bits before each call) however I have to divide it by about 12 to get a reasonable kbps for the stream and I'm wondering how I'm getting to 12 (if that makes any sense).
Bob is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Rockbox on iPod progress: playback works, MPC plays realtime Shy General 1 11 December 2006 03:00 am


All times are GMT. The time now is 08:08 am.


Powered by vBulletin® Version 3.8.11 Beta 2
Copyright ©2000 - 2018, vBulletin Solutions Inc.