MPD: AudioCompress/compress.h Source File

MPD 0.20.15

compress.h
Go to the documentation of this file.
1
8 #ifndef COMPRESS_H
9 #define COMPRESS_H
10
11 #include <stdint.h>
12
14 struct CompressorConfig {
15 int target;
16 int maxgain;
17 int smooth;
18 };
19
20 struct Compressor;
21
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25
27 struct Compressor *Compressor_new(unsigned int history);
28
30 void Compressor_delete(struct Compressor *);
31
33 void Compressor_setHistory(struct Compressor *, unsigned int history);
34
36 struct CompressorConfig *Compressor_getConfig(struct Compressor *);
37
39 void Compressor_Process_int16(struct Compressor *, int16_t *data, unsigned int count);
40
41 #ifdef __cplusplus
42 }
43 #endif
44
46
48
49 #endif
CompressorConfig::maxgain
int maxgain
Definition: compress.h:16
CompressorConfig::target
int target
Definition: compress.h:15
Compressor_new
struct Compressor * Compressor_new(unsigned int history)
Create a new compressor (use history value of 0 for default)
CompressorConfig::smooth
int smooth
Definition: compress.h:17
Compressor_delete
void Compressor_delete(struct Compressor *)
Delete a compressor.
Compressor_getConfig
struct CompressorConfig * Compressor_getConfig(struct Compressor *)
Get the configuration for a compressor.
Compressor_Process_int16
void Compressor_Process_int16(struct Compressor *, int16_t *data, unsigned int count)
Process 16-bit signed data.
CompressorConfig
Configuration values for the compressor object.
Definition: compress.h:14
Compressor_setHistory
void Compressor_setHistory(struct Compressor *, unsigned int history)
Set the history length.