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