Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
Main Page
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
h
i
l
m
n
o
p
r
s
t
u
v
Functions
a
b
c
d
e
f
h
i
l
n
o
p
r
s
t
u
v
Variables
Typedefs
Enumerations
a
c
d
f
h
i
l
m
p
r
s
t
v
Enumerator
a
c
d
f
h
i
l
m
p
r
s
t
u
v
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
~
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
~
Variables
a
b
c
d
e
f
h
i
j
l
m
n
o
p
q
r
s
t
u
w
Typedefs
Enumerations
Enumerator
b
c
d
e
f
i
m
n
q
r
s
x
Files
File List
File Members
All
f
o
r
Functions
Variables
Macros
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
sample_format.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2023 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_format.h
10
//! @brief Sample format.
11
12
#ifndef ROC_AUDIO_SAMPLE_FORMAT_H_
13
#define ROC_AUDIO_SAMPLE_FORMAT_H_
14
15
#include "
roc_audio/pcm_format.h
"
16
17
namespace
roc
{
18
namespace
audio {
19
20
//! Sample format.
21
//! Defines representation of samples in memory.
22
//! Does not define sample rate and channel set.
23
enum
SampleFormat
{
24
//! Invalid format.
25
SampleFormat_Invalid
,
26
27
//! Interleaved PCM format.
28
//! What specific PCM coding and endian is used is defined
29
//! by PcmFormat enum.
30
SampleFormat_Pcm
,
31
};
32
33
//! Get string name of sample format.
34
const
char
*
sample_format_to_str
(
SampleFormat
format);
35
36
}
// namespace audio
37
}
// namespace roc
38
39
#endif
// ROC_AUDIO_SAMPLE_FORMAT_H_
roc::audio::sample_format_to_str
const char * sample_format_to_str(SampleFormat format)
Get string name of sample format.
roc::audio::SampleFormat
SampleFormat
Sample format. Defines representation of samples in memory. Does not define sample rate and channel s...
Definition:
sample_format.h:23
roc::audio::SampleFormat_Pcm
@ SampleFormat_Pcm
Interleaved PCM format. What specific PCM coding and endian is used is defined by PcmFormat enum.
Definition:
sample_format.h:30
roc::audio::SampleFormat_Invalid
@ SampleFormat_Invalid
Invalid format.
Definition:
sample_format.h:25
roc
Root namespace.
pcm_format.h
PCM format.
roc_audio
sample_format.h
Generated by
1.9.1