diff options
author | anders <anders@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-02-25 13:31:26 +0000 |
---|---|---|
committer | anders <anders@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-02-25 13:31:26 +0000 |
commit | 330d33256f51e049ee93458b43cef557a8a96f7e (patch) | |
tree | f2ce84ccba67afdef2672aa17c1923a6481ed368 /libao2/audio_plugin.h | |
parent | 4b6f1667dbc44aebfae5de7d92ae5b8a2095c243 (diff) | |
download | mpv-330d33256f51e049ee93458b43cef557a8a96f7e.tar.bz2 mpv-330d33256f51e049ee93458b43cef557a8a96f7e.tar.xz |
Adding SW volume control
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4860 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libao2/audio_plugin.h')
-rw-r--r-- | libao2/audio_plugin.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/libao2/audio_plugin.h b/libao2/audio_plugin.h index cfe71792ce..145b4e3e14 100644 --- a/libao2/audio_plugin.h +++ b/libao2/audio_plugin.h @@ -35,27 +35,30 @@ typedef struct ao_plugin_cfg_s int pl_format_type; // Output format 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 } ao_plugin_cfg_t; -extern volatile ao_plugin_cfg_t ao_plugin_cfg; +extern ao_plugin_cfg_t ao_plugin_cfg; // Configuration defaults #define CFG_DEFAULTS { \ NULL, \ AFMT_S16_LE, \ 0, \ - 48000 \ + 48000, \ + 255 \ }; // This block should not be available in the pl_xxxx files // due to compilation issues #ifndef PLUGIN -#define NPL 4+1 // Number of PLugins ( +1 list ends with NULL ) +#define NPL 5+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; #define AO_PLUGINS { \ @@ -63,6 +66,7 @@ extern ao_plugin_functions_t audio_plugin_resample; &audio_plugin_format, \ &audio_plugin_surround, \ &audio_plugin_resample, \ + &audio_plugin_volume, \ NULL \ } #endif /* PLUGIN */ |