1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

RTC: Remove dead code

This commit is contained in:
winlin 2020-05-13 15:13:14 +08:00
parent c0021ab78a
commit 8efbdec2af
3 changed files with 9 additions and 157 deletions

View file

@ -36,6 +36,14 @@
#include <srs_kernel_buffer.hpp>
#include <srs_app_rtc_codec.hpp>
const int kChannel = 2;
const int kSamplerate = 48000;
// An AAC packet may be transcoded to many OPUS packets.
const int kMaxOpusPackets = 8;
// The max size for each OPUS packet.
const int kMaxOpusPacketSize = 4096;
using namespace std;
// TODO: Add this function into SrsRtpMux class.
@ -585,11 +593,6 @@ srs_error_t SrsRtcFromRtmpBridger::on_audio(SrsSharedPtrMessage* msg)
return source_->on_audio_imp(msg);
}
// An AAC packet may be transcoded to many OPUS packets.
const int kMaxOpusPackets = 8;
// The max size for each OPUS packet.
const int kMaxOpusPacketSize = 4096;
srs_error_t SrsRtcFromRtmpBridger::transcode(SrsSharedPtrMessage* shared_audio, char* adts_audio, int nn_adts_audio)
{
srs_error_t err = srs_success;