Mercurial > mplayer.hg
comparison libao2/pl_extrastereo.c @ 6795:776b686069af
- add some control (ao_oss, pl_extrastereo)
- cosmetic
author | pontscho |
---|---|
date | Thu, 25 Jul 2002 20:28:47 +0000 |
parents | 3022570ad7d4 |
children | 66f3204117d6 |
comparison
equal
deleted
inserted
replaced
6794:77980ab4e296 | 6795:776b686069af |
---|---|
31 LIBAO_PLUGIN_EXTERN(extrastereo) | 31 LIBAO_PLUGIN_EXTERN(extrastereo) |
32 | 32 |
33 // local data | 33 // local data |
34 static struct { | 34 static struct { |
35 float mul; // intensity | 35 float mul; // intensity |
36 int inuse; // This plugin is in use TRUE, FALSE | 36 int inuse; // This plugin is in use TRUE, FALSE |
37 int format; // sample format | 37 int format; // sample format |
38 } pl_extrastereo = {2.5, 0, 0}; | 38 } pl_extrastereo = {2.5, 0, 0}; |
39 | 39 |
40 | 40 |
41 // to set/get/query special features/parameters | 41 // to set/get/query special features/parameters |
42 static int control(int cmd,int arg){ | 42 static int control(int cmd,int arg){ |
43 switch(cmd){ | 43 switch(cmd){ |
44 case AOCONTROL_PLUGIN_SET_LEN: | 44 case AOCONTROL_PLUGIN_SET_LEN: |
45 return CONTROL_OK; | |
46 case AOCONTROL_PLUGIN_ES_SET: | |
47 pl_extrastereo.mul=*((float*)arg); | |
48 return CONTROL_OK; | |
49 case AOCONTROL_PLUGIN_ES_GET: | |
50 *((float*)arg)=pl_extrastereo.mul; | |
45 return CONTROL_OK; | 51 return CONTROL_OK; |
46 } | 52 } |
47 return CONTROL_UNKNOWN; | 53 return CONTROL_UNKNOWN; |
48 } | 54 } |
49 | 55 |