Commit b225663e authored by Stefan Seyfried's avatar Stefan Seyfried

getBitRate: add option for average bitrate

parent 72908f21
...@@ -3978,7 +3978,9 @@ bool Audio::setBitrate(int br){ ...@@ -3978,7 +3978,9 @@ bool Audio::setBitrate(int br){
if(br)return true; if(br)return true;
return false; return false;
} }
uint32_t Audio::getBitRate(){ uint32_t Audio::getBitRate(bool avg){
if (avg)
return m_avr_bitrate;
return m_bitRate; return m_bitRate;
} }
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------
......
...@@ -182,7 +182,7 @@ public: ...@@ -182,7 +182,7 @@ public:
uint32_t getSampleRate(); uint32_t getSampleRate();
uint8_t getBitsPerSample(); uint8_t getBitsPerSample();
uint8_t getChannels(); uint8_t getChannels();
uint32_t getBitRate(); uint32_t getBitRate(bool avg = false);
uint32_t getAudioFileDuration(); uint32_t getAudioFileDuration();
uint32_t getAudioCurrentTime(); uint32_t getAudioCurrentTime();
uint32_t getTotalPlayingTime(); 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