Debian Codegraph @

xbmc/cores/RetroPlayer/audio/AudioTranslator.h

raw
1 /*
2 * Copyright (C) 2017-2018 Team Kodi
3 * This file is part of Kodi - https://kodi.tv
4 *
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 * See LICENSES/README.md for more information.
7 */
8
9 #pragma once
10
11 #include "cores/AudioEngine/Utils/AEChannelData.h"
12 #include "cores/RetroPlayer/streams/RetroPlayerStreamTypes.h"
13
14 namespace KODI
15 {
16 namespace RETRO
17 {
18 class CAudioTranslator
19 {
20 public:
21 /*!
22 * \brief Translate audio PCM format (Game API to AudioEngine).
23 * \param format The audio PCM format to translate.
24 * \return Translated audio PCM format.
25 */
26 static AEDataFormat TranslatePCMFormat(PCMFormat format);
27
28 /*!
29 * \brief Translate audio channels (Game API to AudioEngine).
30 * \param format The audio channels to translate.
31 * \return Translated audio channels.
32 */
33 static AEChannel TranslateAudioChannel(AudioChannel channel);
34 };
35 } // namespace RETRO
36 } // namespace KODI