MPD  0.20.6
compress.h
Go to the documentation of this file.
1 
8 #ifndef COMPRESS_H
9 #define COMPRESS_H
10 
11 #include <stdint.h>
12 
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
struct Compressor * Compressor_new(unsigned int history)
Create a new compressor (use history value of 0 for default)
void Compressor_delete(struct Compressor *)
Delete a compressor.
struct CompressorConfig * Compressor_getConfig(struct Compressor *)
Get the configuration for a compressor.
void Compressor_Process_int16(struct Compressor *, int16_t *data, unsigned int count)
Process 16-bit signed data.
Configuration values for the compressor object.
Definition: compress.h:14
void Compressor_setHistory(struct Compressor *, unsigned int history)
Set the history length.