Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
device_type.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_type.h
10 //! @brief Device type.
11 
12 #ifndef ROC_SNDIO_DEVICE_TYPE_H_
13 #define ROC_SNDIO_DEVICE_TYPE_H_
14 
15 namespace roc {
16 namespace sndio {
17 
18 //! Device type.
19 enum DeviceType {
20  DeviceType_Sink, //!< Sink.
21  DeviceType_Source //!< Source.
22 };
23 
24 //! Convert device type to string.
25 const char* device_type_to_str(DeviceType type);
26 
27 } // namespace sndio
28 } // namespace roc
29 
30 #endif // ROC_SNDIO_DEVICE_TYPE_H_
DeviceType
Device type.
Definition: device_type.h:19
@ DeviceType_Source
Source.
Definition: device_type.h:21
@ DeviceType_Sink
Sink.
Definition: device_type.h:20
const char * device_type_to_str(DeviceType type)
Convert device type to string.
Root namespace.