diff options
author | anders <anders@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-12-28 13:59:53 +0000 |
---|---|---|
committer | anders <anders@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-12-28 13:59:53 +0000 |
commit | 6adaa78ee935ef89439d4b38550165f13e880320 (patch) | |
tree | 6612adc09121e661363b1370cb43981007d36b60 /libaf/af.h | |
parent | 0e9c0e8aa2aa7df6aad5d78c4b664927a9d2421e (diff) | |
download | mpv-6adaa78ee935ef89439d4b38550165f13e880320.tar.bz2 mpv-6adaa78ee935ef89439d4b38550165f13e880320.tar.xz |
Changes includes:
- Improved runtime control system
- 3 New filter panning, compressor/limiter and a noise gate
- The compressor/limiter and the noise gate are not yet finished
- The panning filter does combined mixing and channel routing and
can be used to down-mix from stereo to mono (for example)
- Improvements to volume and channel
- volume now has a very good soft clipping using sin()
- channel can handle generic routing of audio data
- Conversion of all filters to handle floating point data
- Cleanup of message printing
- Fix for the sig 11 bug reported by Denes
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8608 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libaf/af.h')
-rw-r--r-- | libaf/af.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/libaf/af.h b/libaf/af.h index dc542bb7e0..48dfbc5b17 100644 --- a/libaf/af.h +++ b/libaf/af.h @@ -180,6 +180,19 @@ int af_resize_local_buffer(af_instance_t* af, af_data_t* data); needed */ int af_lencalc(frac_t mul, af_data_t* data); +/* Helper function used to convert to gain value from dB. Returns + AF_OK if of and AF_ERROR if fail */ +int af_from_dB(int n, float* in, float* out, float k, float mi, float ma); +/* Helper function used to convert from gain value to dB. Returns + AF_OK if of and AF_ERROR if fail */ +int af_to_dB(int n, float* in, float* out, float k); +/* Helper function used to convert from ms to sample time*/ +int af_from_ms(int n, float* in, float* out, int rate, float mi, float ma); +/* Helper function used to convert from sample time to ms */ +int af_to_ms(int n, float* in, float* out, int rate); +/* Helper function for testing the output format */ +int af_test_output(struct af_instance_s* af, af_data_t* out); + /* Memory reallocation macro: if a local buffer is used (i.e. if the filter doesn't operate on the incoming buffer this macro must be called to ensure the buffer is big enough. */ |