pschatzmann / arduino-audio-tools

Arduino Audio Tools (a powerful Audio library not only for Arduino)
GNU General Public License v3.0
1.27k stars 199 forks source link

TimedStream: recalculate ByteLimits when setting values #1407

Closed h3ndrik closed 3 months ago

h3ndrik commented 3 months ago

With snapcast, the timed_stream never waits. As TimedStream's begin() has already ran once setStartMs() is called, so TimedStream::calculateByteLimits() isn't called again and thus start_bytes is 0 and the stream always starts immediately.

I don't see a reason why you would want to setStartSec or setStartMs without actually applying that. But don't understand the consequences for other projects.