[WASAPI] set stream audio category
[xbmc.git] / xbmc / cores / RetroPlayer / RetroPlayerUtils.h
blob27fee5a9f2dff9d31456821fbfdd7d090124ebd6
1 /*
2 * Copyright (C) 2017-2018 Team Kodi
3 * This file is part of Kodi - https://kodi.tv
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 * See LICENSES/README.md for more information.
7 */
9 #pragma once
11 #include "cores/GameSettings.h"
13 #include <string>
15 namespace KODI
17 namespace RETRO
19 class CRetroPlayerUtils
21 public:
22 /*!
23 * \brief Convert a stretch mode enum to a short string identifier
25 * \param stretchMode The stretch mode
27 * \return A short string identifier specified by GameSettings.h, or an
28 * empty string if the stretch mode is invalid
30 static const char* StretchModeToIdentifier(STRETCHMODE stretchMode);
32 /*!
33 * \brief Convert a stretch mode identifier to an enum
35 * \param stretchMode The short string identifier, from GameSettings.h,
36 * representing the stretch mode
38 * \return The stretch mode enum, or STRETCHMODE::Normal if the identifier
39 * is invalid
41 static STRETCHMODE IdentifierToStretchMode(const std::string& stretchMode);
43 } // namespace RETRO
44 } // namespace KODI