Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
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 
17 namespace roc {
18 namespace audio {
19 
20 //! Audio sample.
21 typedef float sample_t;
22 
23 //! Maximum possible value of a sample.
24 extern const sample_t SampleMax;
25 
26 //! Minimum possible value of a sample.
27 extern const sample_t SampleMin;
28 
29 } // namespace audio
30 } // namespace roc
31 
32 #endif // ROC_AUDIO_UNITS_H_
Root namespace.
float sample_t
Audio sample.
Definition: units.h:21
const sample_t SampleMax
Maximum possible value of a sample.
const sample_t SampleMin
Minimum possible value of a sample.
Commonly used types and functions.