#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "remoting/codec/audio_decoder_opus.h"
#include <stdint.h>
#include "base/logging.h"
#include "base/time/time.h"
#include "remoting/proto/audio.pb.h"
#include "third_party/opus/src/include/opus.h"
namespace remoting {
namespace {
const int kMaxFrameSizeMs = …;
const int kMaxFramesPerPacket = …;
const AudioPacket::SamplingRate kSamplingRate =
AudioPacket::SAMPLING_RATE_48000;
}
AudioDecoderOpus::AudioDecoderOpus()
: … { … }
AudioDecoderOpus::~AudioDecoderOpus() { … }
void AudioDecoderOpus::InitDecoder() { … }
void AudioDecoderOpus::DestroyDecoder() { … }
bool AudioDecoderOpus::ResetForPacket(AudioPacket* packet) { … }
std::unique_ptr<AudioPacket> AudioDecoderOpus::Decode(
std::unique_ptr<AudioPacket> packet) { … }
}