Skip to content

Commit 556e85a

Browse files
committed
RTSPAudioStreamerUsingTask: reduce m_throttle_interval
1 parent 534521a commit 556e85a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/AudioTools/Communication/RTSP/RTSPAudioStreamer.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1033,7 +1033,7 @@ class RTSPAudioStreamerUsingTask : public RTSPAudioStreamerBase<Platform> {
10331033
* on the expected elapsed time (interval * timerPeriodUs) versus the actual
10341034
* elapsed time, then resets the interval window.
10351035
*
1036-
* @param interval Number of sends per throttle window (e.g., 1000 or 10000)
1036+
* @param interval Number of sends per throttle window (e.g., 1 = every send) (default value 50)
10371037
*/
10381038
void setThrottleInterval(uint32_t interval) {
10391039
m_throttle_interval = interval;
@@ -1048,7 +1048,7 @@ class RTSPAudioStreamerUsingTask : public RTSPAudioStreamerBase<Platform> {
10481048
bool m_throttled = true; ///< Enable precise microsecond timing
10491049
uint16_t m_fixed_delay_ms = 1; ///< Fixed delay in milliseconds (if used)
10501050
uint32_t m_throttle_interval =
1051-
1000; ///< Number of sends before precise correction
1051+
50; ///< Number of sends before precise correction
10521052
uint32_t m_send_counter =
10531053
0; ///< Counts sends within the current throttle window
10541054
unsigned long m_last_throttle_us =

0 commit comments

Comments
 (0)