Zrythm
a highly automated and intuitive digital audio workstation
Toggle main menu visibility
Main Page
Related Pages
Topics
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
Data Fields
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
y
z
Functions
a
e
f
g
i
m
p
r
t
w
z
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
Files
File List
Globals
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
z
Variables
Typedefs
Enumerations
a
b
c
e
f
g
i
k
m
n
p
r
s
t
u
z
Enumerator
a
u
z
Macros
_
a
b
c
d
e
f
h
i
k
m
p
r
s
t
u
v
z
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
Loading...
Searching...
No Matches
ditherer.h
Go to the documentation of this file.
1
// clang-format off
2
// SPDX-FileCopyrightText: © 2021 Alexandros Theodotou <alex@zrythm.org>
3
// SPDX-License-Identifier: LicenseRef-ZrythmLicense
4
/*
5
* This file incorporates work covered by the following copyright and
6
* permission notice:
7
*
8
* ---
9
*
10
* ,--. ,--. ,--. ,--.
11
,-' '-.,--.--.,--,--.,---.| |,-.,-' '-.`--' ,---. ,--,--, Copyright 2018
12
'-. .-'| .--' ,-. | .--'| /'-. .-',--.| .-. || \ Tracktion Software
13
| | | | \ '-' \ `--.| \ \ | | | |' '-' '| || | Corporation
14
`---' `--' `--`--'`---'`--'`--' `---' `--' `---' `--''--' www.tracktion.com
15
*
16
* Tracktion Engine is published under a dual [GPL3 (or later)](https://www.gnu.org/licenses/gpl-3.0.en.html)/[Commercial license](https://www.tracktion.com/develop/tracktion-engine).
17
*
18
* ---
19
*/
20
// clang-format on
21
28
#ifndef __AUDIO_DITHER_H__
29
#define __AUDIO_DITHER_H__
30
31
#include "
utils/types.h
"
32
42
typedef
struct
Ditherer
43
{
44
int
random1;
45
int
random2;
46
float
amp;
47
float
offset;
48
float
s1;
49
float
s2;
50
}
Ditherer
;
42
typedef
struct
Ditherer
{
…
};
51
52
void
53
ditherer_reset (
Ditherer
* self,
int
num_bits);
54
64
void
65
ditherer_process
(
66
Ditherer
* self,
67
float
* frames,
68
size_t
n_frames,
69
channels_t
channels);
70
75
#endif
ditherer_process
void ditherer_process(Ditherer *self, float *frames, size_t n_frames, channels_t channels)
Dither given audio.
channels_t
unsigned int channels_t
Number of channels.
Definition
types.h:48
Ditherer
Ditherer.
Definition
ditherer.h:43
types.h
Custom types.
dsp
ditherer.h
Generated by
1.11.0