summaryrefslogtreecommitdiffstats
path: root/libao2/pl_extrastereo.c
diff options
context:
space:
mode:
authorpontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-07-25 20:28:47 +0000
committerpontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-07-25 20:28:47 +0000
commitdde3c1526688cdca21a249703214056dba71eaa3 (patch)
tree766c8279a80bf6b7cfcfead84c5441e94d41ddf4 /libao2/pl_extrastereo.c
parentb1be9a6a39d94fc1cbe00eaaa7c7425c081d0721 (diff)
downloadmpv-dde3c1526688cdca21a249703214056dba71eaa3.tar.bz2
mpv-dde3c1526688cdca21a249703214056dba71eaa3.tar.xz
- add some control (ao_oss, pl_extrastereo)
- cosmetic git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6796 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libao2/pl_extrastereo.c')
-rw-r--r--libao2/pl_extrastereo.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/libao2/pl_extrastereo.c b/libao2/pl_extrastereo.c
index da15e0ff41..4d6fb10f07 100644
--- a/libao2/pl_extrastereo.c
+++ b/libao2/pl_extrastereo.c
@@ -33,8 +33,8 @@ LIBAO_PLUGIN_EXTERN(extrastereo)
// local data
static struct {
float mul; // intensity
- int inuse; // This plugin is in use TRUE, FALSE
- int format; // sample format
+ int inuse; // This plugin is in use TRUE, FALSE
+ int format; // sample format
} pl_extrastereo = {2.5, 0, 0};
@@ -43,6 +43,12 @@ static int control(int cmd,int arg){
switch(cmd){
case AOCONTROL_PLUGIN_SET_LEN:
return CONTROL_OK;
+ case AOCONTROL_PLUGIN_ES_SET:
+ pl_extrastereo.mul=*((float*)arg);
+ return CONTROL_OK;
+ case AOCONTROL_PLUGIN_ES_GET:
+ *((float*)arg)=pl_extrastereo.mul;
+ return CONTROL_OK;
}
return CONTROL_UNKNOWN;
}