Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
Loading...
Searching...
No Matches
config.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2019 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/config.h
10//! @brief Sink and source config.
11
12#ifndef ROC_SNDIO_CONFIG_H_
13#define ROC_SNDIO_CONFIG_H_
14
16#include "roc_core/stddefs.h"
17#include "roc_packet/units.h"
18
19namespace roc {
20namespace sndio {
21
22//! Sink and source config.
23struct Config {
24 //! Sample spec
26
27 //! Duration of the internal frames, in nanoseconds.
29
30 //! Requested input or output latency.
32
33 //! Initialize.
35 : sample_spec()
36 , frame_length(0)
37 , latency(0) {
38 }
39};
40
41} // namespace sndio
42} // namespace roc
43
44#endif // ROC_SNDIO_CONFIG_H_
Sample stream specification. Defines sample rate and channel layout.
Definition sample_spec.h:24
int64_t nanoseconds_t
Nanoseconds.
Definition time.h:58
Root namespace.
Sample specifications.
Commonly used types and functions.
Sink and source config.
Definition config.h:23
Config()
Initialize.
Definition config.h:34
audio::SampleSpec sample_spec
Sample spec.
Definition config.h:25
core::nanoseconds_t latency
Requested input or output latency.
Definition config.h:31
core::nanoseconds_t frame_length
Duration of the internal frames, in nanoseconds.
Definition config.h:28
Various units used in packets.