Add logging of audio auxLine. Default to 8000Hz

This commit is contained in:
Isaac Connor 2021-03-01 13:59:36 -05:00
parent 7ba6e45505
commit c716e8c149
1 changed files with 3 additions and 1 deletions

View File

@ -6,6 +6,7 @@
** **
** -------------------------------------------------------------------------*/ ** -------------------------------------------------------------------------*/
#include "zm_logger.h"
#include "zm_rtsp_server_adts_fifo_source.h" #include "zm_rtsp_server_adts_fifo_source.h"
#include <sstream> #include <sstream>
@ -29,7 +30,7 @@ ADTS_ZoneMinderFifoSource::ADTS_ZoneMinderFifoSource(
) )
: :
ZoneMinderFifoSource(env, fifo, queueSize), ZoneMinderFifoSource(env, fifo, queueSize),
samplingFrequencyIndex(0), samplingFrequencyIndex(11),
channels(1) channels(1)
{ {
std::ostringstream os; std::ostringstream os;
@ -39,5 +40,6 @@ ADTS_ZoneMinderFifoSource::ADTS_ZoneMinderFifoSource(
"indexdeltalength=3" "indexdeltalength=3"
<< "\r\n"; << "\r\n";
m_auxLine.assign(os.str()); m_auxLine.assign(os.str());
Debug(1, "m_auxline is %s", m_auxLine.c_str());
} }
#endif // HAVE_RTSP_SERVER #endif // HAVE_RTSP_SERVER