| 1 |
/* |
| 2 |
* Copyright (C) 2011-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/Sinks/osx/CoreAudioDevice.h" |
| 12 |
|
| 13 |
// There is only one AudioSystemObject instance system-side. |
| 14 |
// Therefore, all CCoreAudioHardware methods are static |
| 15 |
class CCoreAudioHardware |
| 16 |
{ |
| 17 |
public: |
| 18 |
static bool GetAutoHogMode(); |
| 19 |
static void SetAutoHogMode(bool enable); |
| 20 |
static AudioStreamBasicDescription* FormatsList(AudioStreamID stream); |
| 21 |
static AudioStreamID* StreamsList(AudioDeviceID device); |
| 22 |
static void ResetAudioDevices(); |
| 23 |
static void ResetStream(AudioStreamID streamId); |
| 24 |
static AudioDeviceID FindAudioDevice(const std::string &deviceName); |
| 25 |
static AudioDeviceID GetDefaultOutputDevice(); |
| 26 |
static void GetOutputDeviceName(std::string &name); |
| 27 |
static UInt32 GetOutputDevices(CoreAudioDeviceList *pList); |
| 28 |
}; |