Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
ESP32-audioI2S
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
ESP32-audioI2S
Commits
b225663e
Commit
b225663e
authored
Jan 28, 2022
by
Stefan Seyfried
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
getBitRate: add option for average bitrate
parent
72908f21
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
src/Audio.cpp
src/Audio.cpp
+3
-1
src/Audio.h
src/Audio.h
+1
-1
No files found.
src/Audio.cpp
View file @
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
;
}
//---------------------------------------------------------------------------------------------------------------------
...
...
src/Audio.h
View file @
b225663e
...
...
@@ -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
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment