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 
16 #include "roc_core/stddefs.h"
17 
18 namespace roc {
19 namespace audio {
20 
21 //! Raw audio sample.
22 typedef float sample_t;
23 
24 //! Format description for raw audio samples.
25 extern const PcmFormat Sample_RawFormat;
26 
27 //! Minimum possible value of a raw sample.
28 extern const sample_t Sample_Min;
29 
30 //! Maximum possible value of a raw sample.
31 extern const sample_t Sample_Max;
32 
33 } // namespace audio
34 } // namespace roc
35 
36 #endif // ROC_AUDIO_SAMPLE_H_
const sample_t Sample_Max
Maximum possible value of a raw sample.
const sample_t Sample_Min
Minimum possible value of a raw sample.
float sample_t
Raw audio sample.
Definition: sample.h:22
const PcmFormat Sample_RawFormat
Format description for raw audio samples.
PcmFormat
PCM format. Defines PCM sample coding and endian.
Definition: pcm_format.h:22
Root namespace.
Sample format.
Commonly used types and functions.