supported_audio_codecs.cc 546 B

1234567891011121314151617181920
  1. // Copyright 2021 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #include "media/cdm/supported_audio_codecs.h"
  5. #include "media/media_buildflags.h"
  6. namespace media {
  7. const base::flat_set<AudioCodec> GetCdmSupportedAudioCodecs() {
  8. return {
  9. AudioCodec::kOpus, AudioCodec::kVorbis, AudioCodec::kFLAC,
  10. #if BUILDFLAG(USE_PROPRIETARY_CODECS)
  11. AudioCodec::kAAC,
  12. #endif // BUILDFLAG(USE_PROPRIETARY_CODECS)
  13. };
  14. }
  15. } // namespace media