Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
channel_set_to_str.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2023 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_audio/channel_set_to_str.h
10//! @brief Format ChannelSet to string.
11
12#ifndef ROC_AUDIO_CHANNEL_SET_TO_STR_H_
13#define ROC_AUDIO_CHANNEL_SET_TO_STR_H_
14
17
18namespace roc {
19namespace audio {
20
21//! Format ChannelSet to string.
23public:
24 //! Construct.
26
27 //! Get formatted string.
28 const char* c_str() const {
29 return buf_;
30 }
31
32private:
33 char buf_[128];
34};
35
36} // namespace audio
37} // namespace roc
38
39#endif // ROC_AUDIO_CHANNEL_SET_TO_STR_H_
Channel set.
Channel set. Multi-word bitmask with bits corresponding to enabled channels. Meaning of each channel ...
Definition channel_set.h:26
Format ChannelSet to string.
const char * c_str() const
Get formatted string.
channel_set_to_str(const ChannelSet &)
Construct.
Base class for non-copyable objects.
Definition noncopyable.h:23
Root namespace.
Non-copyable object.