Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
Loading...
Searching...
No Matches
device_state.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2022 Roc Streaming authors
3
*
4
* This Source Code Form is subject to the terms of the Mozilla Public
5
* License, v. 2.0. If a copy of the MPL was not distributed with this
6
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
7
*/
8
9
//! @file roc_sndio/device_state.h
10
//! @brief Device state.
11
12
#ifndef ROC_SNDIO_DEVICE_STATE_H_
13
#define ROC_SNDIO_DEVICE_STATE_H_
14
15
namespace
roc
{
16
namespace
sndio {
17
18
//! Device state.
19
enum
DeviceState
{
20
//! Device is running and active.
21
//! It is producing some sound.
22
DeviceState_Active
,
23
24
//! Device is running but is inactive.
25
//! It is producing silence. It may be safely paused.
26
DeviceState_Idle
,
27
28
//! Device is paused.
29
//! It's not producing anything.
30
DeviceState_Paused
31
};
32
33
//! Convert device state to string.
34
const
char
*
device_state_to_str
(
DeviceState
state);
35
36
}
// namespace sndio
37
}
// namespace roc
38
39
#endif
// ROC_SNDIO_DEVICE_STATE_H_
roc::sndio::DeviceState
DeviceState
Device state.
Definition
device_state.h:19
roc::sndio::DeviceState_Active
@ DeviceState_Active
Device is running and active. It is producing some sound.
Definition
device_state.h:22
roc::sndio::DeviceState_Idle
@ DeviceState_Idle
Device is running but is inactive. It is producing silence. It may be safely paused.
Definition
device_state.h:26
roc::sndio::DeviceState_Paused
@ DeviceState_Paused
Device is paused. It's not producing anything.
Definition
device_state.h:30
roc::sndio::device_state_to_str
const char * device_state_to_str(DeviceState state)
Convert device state to string.
roc
Root namespace.
roc_sndio
device_state.h
Generated by
1.9.8