Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
Loading...
Searching...
No Matches
units.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2015 Roc 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/units.h
10//! @brief Various units used in audio processing.
11
12#ifndef ROC_AUDIO_UNITS_H_
13#define ROC_AUDIO_UNITS_H_
14
15#include "roc_core/stddefs.h"
16
17namespace roc {
18namespace audio {
19
20//! Audio sample.
21typedef float sample_t;
22
23//! Maximum possible value of a sample.
24extern const sample_t SampleMax;
25
26//! Minimum possible value of a sample.
27extern const sample_t SampleMin;
28
29} // namespace audio
30} // namespace roc
31
32#endif // ROC_AUDIO_UNITS_H_
const sample_t SampleMin
Minimum possible value of a sample.
float sample_t
Audio sample.
Definition: units.h:21
const sample_t SampleMax
Maximum possible value of a sample.
Root namespace.
Commonly used types and functions.