chromium/remoting/codec/audio_decoder_opus.cc

// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifdef UNSAFE_BUFFERS_BUILD
// TODO(crbug.com/40285824): Remove this and convert code to safer constructs.
#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 {

// Maximum size of an Opus frame in milliseconds.
const int kMaxFrameSizeMs =;

// Hosts will never generate more than 100 frames in a single packet.
const int kMaxFramesPerPacket =;

const AudioPacket::SamplingRate kSamplingRate =
    AudioPacket::SAMPLING_RATE_48000;

}  // namespace

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) {}

}  // namespace remoting