kodi
xbmc
cores
AudioEngine
Sinks
alsa
ALSADeviceMonitor.h
1
/*
2
* Copyright (C) 2014-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 "platform/Platform.h"
12
13
#include <string>
14
#include <vector>
15
16
#include <alsa/asoundlib.h>
17
18
class
CALSADeviceMonitor
:
public
IPlatformService
19
{
20
public
:
21
CALSADeviceMonitor
();
22
~
CALSADeviceMonitor
();
23
24
void
Start();
25
void
Stop();
26
27
private
:
28
static
void
FDEventCallback(
int
id
,
int
fd,
short
revents,
void
*data);
29
30
int
m_fdMonitorId = 0;
31
32
struct
udev *m_udev;
33
struct
udev_monitor* m_udevMonitor;
34
};
CALSADeviceMonitor
Definition:
ALSADeviceMonitor.h:18
IPlatformService
Base class for services.
Definition:
Platform.h:14
Generated by
1.8.13