Skip to content

Commit 3a3a8b7

Browse files
authored
Add files via upload
1 parent a7a5708 commit 3a3a8b7

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

src/Audio.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
*
44
* Created on: Oct 26.2018
55
*
6-
* Version 2.0.7i
7-
* Updated on: Jan 05.2023
6+
* Version 2.0.7j
7+
* Updated on: Jan 06.2023
88
* Author: Wolle (schreibfaul1)
99
*
1010
*/
@@ -3994,11 +3994,8 @@ uint32_t Audio::getAudioCurrentTime() { // return current time in seconds
39943994
bool Audio::setAudioPlayPosition(uint16_t sec){
39953995
// Jump to an absolute position in time within an audio file
39963996
// e.g. setAudioPlayPosition(300) sets the pointer at pos 5 min
3997-
// works only with format mp3 or wav
3998-
if(m_codec == CODEC_M4A) return false;
39993997
if(sec > getAudioFileDuration()) sec = getAudioFileDuration();
40003998
uint32_t filepos = m_audioDataStart + (m_avr_bitrate * sec / 8);
4001-
40023999
return setFilePos(filepos);
40034000
}
40044001
//---------------------------------------------------------------------------------------------------------------------

src/Audio.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Audio.h
33
*
44
* Created on: Oct 28,2018
5-
* Updated on: Jan 05,2023
5+
* Updated on: Jan 06,2023
66
* Author: Wolle (schreibfaul1)
77
*/
88

0 commit comments

Comments
 (0)