Unverified Commit e9ca064d authored by Wolle's avatar Wolle Committed by GitHub

Merge pull request #269 from seife/devel

getBitRate: add option for average bitrate
parents 72908f21 b225663e
......@@ -3978,7 +3978,9 @@ bool Audio::setBitrate(int br){
if(br)return true;
return false;
}
uint32_t Audio::getBitRate(){
uint32_t Audio::getBitRate(bool avg){
if (avg)
return m_avr_bitrate;
return m_bitRate;
}
//---------------------------------------------------------------------------------------------------------------------
......
......@@ -182,7 +182,7 @@ public:
uint32_t getSampleRate();
uint8_t getBitsPerSample();
uint8_t getChannels();
uint32_t getBitRate();
uint32_t getBitRate(bool avg = false);
uint32_t getAudioFileDuration();
uint32_t getAudioCurrentTime();
uint32_t getTotalPlayingTime();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment