49template <
typename Platform>
64 LOGD(
"Creating RTSP Audio streamer base");
133 LOGI(
"RTSP Audio streamer created. Fragment size: %i bytes",
151 LOGI(
"initAudioSource");
153 LOGE(
"audio_source is null");
193 for (
u_short P = 6970; P < 0xFFFE; P += 2) {
210 LOGI(
"RTP Streamer set up with client IP %s and client Port %i",
288 LOGE(
"mRtpBuf is empty");
294 LOGE(
"No audio source provided");
301 "STREAMIN_BUFFER_SIZE too small for the sampling rate: increase to "
345 LOGI(
"Starting audio source (base)");
354 LOGI(
"Audio source started - ready for manual streaming");
356 LOGE(
"No streaming source");
373 LOGI(
"Stopping audio source (base)");
379 LOGI(
"Audio source stopped");
452 LOGI(
"Timer period changed from %u us to %u us",
478 LOGD(
"timerCallback");
480 LOGE(
"audioStreamerObj is null");
492 LOGW(
"Direct sending of RTP stream failed");
493 }
else if (
bytes > 0) {
496 LOGD(
"%i samples (ts inc) sent; timestamp: %u", inc,
502 LOGW(
"RTP Stream can't keep up (took %lu us, %d is max)!",
stop -
start,
518 typename Platform::UdpSocketType
520 typename Platform::UdpSocketType
623 LOGI(
"RTP learned client via UDP: %s:%u",
627 LOGW(
"Client IP unknown (0.0.0.0) and no inbound UDP yet");
649template <
typename Platform>
662 LOGD(
"Creating RTSP Audio streamer with timer");
673 LOGI(
"RTSPAudioStreamer: Timer set to safe task mode (ESP_TIMER_TASK)");
704 LOGI(
"Starting RTP Stream with timer");
713 LOGE(
"Could not start timer");
750 LOGI(
"Stopping RTP Stream with timer");
761 LOGI(
"RTP Stream stopped - ready for restart");
776template <
typename Platform>
782 m_fixed_delay_ms = 1;
783 m_throttle_interval = 50;
785 m_last_throttle_us = 0;
790 m_fixed_delay_ms = 1;
791 m_throttle_interval = 50;
793 m_last_throttle_us = 0;
804 m_last_throttle_us =
micros();
818 m_lastSendUs =
nowUs;
819 applyThrottling(
nowUs);
826 delay(m_fixed_delay_ms);
827 if (m_throttled && m_throttle_interval > 0) {
833 if (m_send_counter >= m_throttle_interval) {
844 m_last_throttle_us =
micros();
849 unsigned long m_lastSendUs;
854 unsigned long m_last_throttle_us;
#define LOGW(...)
Definition AudioLoggerIDF.h:29
#define LOGI(...)
Definition AudioLoggerIDF.h:28
#define LOGD(...)
Definition AudioLoggerIDF.h:27
#define LOGE(...)
Definition AudioLoggerIDF.h:30
@ US
Definition AudioTypes.h:48