Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
Toggle main menu visibility
Loading...
Searching...
No Matches
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/sample_format.h
"
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_
roc::audio
Audio frames and audio processing.
roc::audio::Sample_Max
const sample_t Sample_Max
Maximum possible value of a raw sample.
roc::audio::Sample_Min
const sample_t Sample_Min
Minimum possible value of a raw sample.
roc::audio::sample_t
float sample_t
Raw audio sample.
Definition
sample.h:22
roc::audio::Sample_RawFormat
const PcmFormat Sample_RawFormat
Format description for raw audio samples.
roc::audio::PcmFormat
PcmFormat
PCM format. Defines PCM sample coding and endian.
Definition
pcm_format.h:22
roc
Root namespace.
sample_format.h
Sample format.
stddefs.h
Commonly used types and functions.
roc_audio
sample.h
Generated by
1.17.0