Skip to content

Commit e4716a3

Browse files
committed
delete getTotalPlayingTime()
1 parent 4c7eb0a commit e4716a3

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

src/Audio.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5258,7 +5258,6 @@ int Audio::sendBytes(uint8_t* data, size_t len) {
52585258
if(m_sbyt.f_setDecodeParamsOnce && m_validSamples) {
52595259
m_sbyt.f_setDecodeParamsOnce = false;
52605260
setDecoderItems();
5261-
m_PlayingStartTime = millis();
52625261
}
52635262

52645263
uint16_t bytesDecoderOut = m_validSamples;
@@ -5429,12 +5428,6 @@ void Audio::setVolumeSteps(uint8_t steps) {
54295428
//------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
54305429
uint8_t Audio::maxVolume() { return m_vol_steps; };
54315430
//------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
5432-
uint32_t Audio::getTotalPlayingTime() {
5433-
// Is set to zero by a connectToXXX() and starts as soon as the first audio data is available,
5434-
// the time counting is not interrupted by a 'pause / resume'
5435-
return millis() - m_PlayingStartTime;
5436-
}
5437-
//------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
54385431
bool Audio::setTimeOffset(int sec) { // fast forward or rewind the current position in seconds
54395432
// info(evt_info, "time offset %li sec", sec);
54405433
if((m_dataMode != AUDIO_LOCALFILE) && (m_streamType != ST_WEBFILE)){ AUDIO_LOG_WARN("%s","not a file"); return false;} // guard

src/Audio.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,6 @@ class Audio{
466466
uint32_t getBitRate(bool avg = false);
467467
uint32_t getAudioFileDuration();
468468
uint32_t getAudioCurrentTime();
469-
uint32_t getTotalPlayingTime();
470469
uint16_t getVUlevel();
471470
uint32_t inBufferFilled(); // returns the number of stored bytes in the inputbuffer
472471
uint32_t inBufferFree(); // returns the number of free bytes in the inputbuffer
@@ -953,7 +952,6 @@ class Audio{
953952
uint32_t m_chunkcount = 0 ; // Counter for chunked transfer
954953
uint32_t m_t0 = 0; // store millis(), is needed for a small delay
955954
uint32_t m_bytesNotConsumed = 0; // pictures or something else that comes with the stream
956-
uint32_t m_PlayingStartTime = 0; // Stores the milliseconds after the start of the audio
957955
int32_t m_resumeFilePos = -1; // the return value from stopSong(), (-1) is idle
958956
int32_t m_fileStartPos = -1; // may be set in connecttoFS()
959957
uint16_t m_m3u8_targetDuration = 10; //

0 commit comments

Comments
 (0)