File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed
Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change 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
39943994bool 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// ---------------------------------------------------------------------------------------------------------------------
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments