Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
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.
20  //! Device is running and active.
21  //! It is producing some sound.
23 
24  //! Device is running but is inactive.
25  //! It is producing silence. It may be safely paused.
27 
28  //! Device is paused.
29  //! It's not producing anything.
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_
DeviceState
Device state.
Definition: device_state.h:19
@ DeviceState_Active
Device is running and active. It is producing some sound.
Definition: device_state.h:22
@ DeviceState_Idle
Device is running but is inactive. It is producing silence. It may be safely paused.
Definition: device_state.h:26
@ DeviceState_Paused
Device is paused. It's not producing anything.
Definition: device_state.h:30
const char * device_state_to_str(DeviceState state)
Convert device state to string.
Root namespace.