diff options
author | pl <pl@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-03-03 14:17:53 +0000 |
---|---|---|
committer | pl <pl@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-03-03 14:17:53 +0000 |
commit | fd28ff2c130b9555be4e8e87aed3b29c313647d1 (patch) | |
tree | 10cec7c8ecd755d6c24b127591d2cd1d905f0c91 /libao2/audio_plugin.h | |
parent | 9301c0157c28116d17f0a1cf58c7be5b04bea4b7 (diff) | |
download | mpv-fd28ff2c130b9555be4e8e87aed3b29c313647d1.tar.bz2 mpv-fd28ff2c130b9555be4e8e87aed3b29c313647d1.tar.xz |
Extrastereo plugin: increases linearly the difference between left and right
channels (as the XMMS extrastereo plugin) which has some of "live" effect (use
it to hear what I mean)
ex: mplayer media.avi -aop list=extrastereo[:mul=3.4]
The default coefficient (mul) is a float number that defaults to 2.5. If you
set it to 0.0, you will have a mono sound (average of both channels), if you
set it to 1.0, you will have unchanged sound.
A patch for DOCS/sound.html is about to be sent to Gabucino.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4928 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libao2/audio_plugin.h')
-rw-r--r-- | libao2/audio_plugin.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/libao2/audio_plugin.h b/libao2/audio_plugin.h index 145b4e3e14..4ee8f1c145 100644 --- a/libao2/audio_plugin.h +++ b/libao2/audio_plugin.h @@ -36,6 +36,7 @@ typedef struct ao_plugin_cfg_s int pl_delay_len; // Number of samples to delay sound output int pl_resample_fout; // Output frequency from resampling int pl_volume_volume; // Initial volume setting + float pl_extrastereo_mul; // Stereo enhancer multiplier } ao_plugin_cfg_t; extern ao_plugin_cfg_t ao_plugin_cfg; @@ -46,19 +47,21 @@ extern ao_plugin_cfg_t ao_plugin_cfg; AFMT_S16_LE, \ 0, \ 48000, \ - 255 \ + 255, \ + 2.5 \ }; // This block should not be available in the pl_xxxx files // due to compilation issues #ifndef PLUGIN -#define NPL 5+1 // Number of PLugins ( +1 list ends with NULL ) +#define NPL 6+1 // Number of PLugins ( +1 list ends with NULL ) // List of plugins extern ao_plugin_functions_t audio_plugin_delay; extern ao_plugin_functions_t audio_plugin_format; extern ao_plugin_functions_t audio_plugin_surround; extern ao_plugin_functions_t audio_plugin_resample; extern ao_plugin_functions_t audio_plugin_volume; +extern ao_plugin_functions_t audio_plugin_extrastereo; #define AO_PLUGINS { \ @@ -67,6 +70,7 @@ extern ao_plugin_functions_t audio_plugin_volume; &audio_plugin_surround, \ &audio_plugin_resample, \ &audio_plugin_volume, \ + &audio_plugin_extrastereo, \ NULL \ } #endif /* PLUGIN */ |