// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROMECAST_MEDIA_AUDIO_NET_CONVERSIONS_H_
#define CHROMECAST_MEDIA_AUDIO_NET_CONVERSIONS_H_
#include "chromecast/media/audio/net/common.pb.h"
#include "chromecast/public/media/decoder_config.h"
#include "chromecast/public/volume_control.h"
namespace chromecast {
namespace media {
namespace audio_service {
media::SampleFormat ConvertSampleFormat(SampleFormat format);
SampleFormat ConvertSampleFormat(media::SampleFormat format);
int GetSampleSizeBytes(SampleFormat format);
ContentType ConvertContentType(media::AudioContentType content_type);
media::AudioContentType ConvertContentType(ContentType type);
ChannelLayout ConvertChannelLayout(media::ChannelLayout channel_layout);
media::ChannelLayout ConvertChannelLayout(ChannelLayout channel_layout);
media::AudioCodec ConvertAudioCodec(AudioCodec codec);
AudioCodec ConvertAudioCodec(media::AudioCodec codec);
} // namespace audio_service
} // namespace media
} // namespace chromecast
#endif // CHROMECAST_MEDIA_AUDIO_NET_CONVERSIONS_H_