summaryrefslogtreecommitdiffstats
path: root/libao2/pl_extrastereo.c
diff options
context:
space:
mode:
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;
}