mirror of
https://github.com/mpv-player/mpv
synced 2025-04-11 17:32:09 +02:00
- add some control (ao_oss, pl_extrastereo)
- cosmetic git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6796 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
b1be9a6a39
commit
dde3c15266
@ -46,6 +46,9 @@ static int control(int cmd,int arg){
|
|||||||
case AOCONTROL_SET_DEVICE:
|
case AOCONTROL_SET_DEVICE:
|
||||||
dsp=(char*)arg;
|
dsp=(char*)arg;
|
||||||
return CONTROL_OK;
|
return CONTROL_OK;
|
||||||
|
case AOCONTROL_GET_DEVICE:
|
||||||
|
(char*)arg=dsp;
|
||||||
|
return CONTROL_OK;
|
||||||
case AOCONTROL_QUERY_FORMAT:
|
case AOCONTROL_QUERY_FORMAT:
|
||||||
return CONTROL_TRUE;
|
return CONTROL_TRUE;
|
||||||
case AOCONTROL_GET_VOLUME:
|
case AOCONTROL_GET_VOLUME:
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
|
||||||
|
#ifndef __AUDIO_OUT_H
|
||||||
|
#define __AUDIO_OUT_H
|
||||||
|
|
||||||
typedef struct ao_info_s
|
typedef struct ao_info_s
|
||||||
{
|
{
|
||||||
/* driver name ("Matrox Millennium G200/G400" */
|
/* driver name ("Matrox Millennium G200/G400" */
|
||||||
@ -68,4 +72,4 @@ typedef struct ao_control_vol_s {
|
|||||||
float right;
|
float right;
|
||||||
} ao_control_vol_t;
|
} ao_control_vol_t;
|
||||||
|
|
||||||
|
#endif
|
||||||
|
@ -83,6 +83,8 @@ extern ao_plugin_functions_t audio_plugin_eq;
|
|||||||
|
|
||||||
// Control parameters used by the plugins
|
// Control parameters used by the plugins
|
||||||
#define AOCONTROL_PLUGIN_SET_LEN 1 // All plugins must respond to this parameter
|
#define AOCONTROL_PLUGIN_SET_LEN 1 // All plugins must respond to this parameter
|
||||||
|
#define AOCONTROL_PLUGIN_ES_SET 4 // set extra stereo coefficient
|
||||||
|
#define AOCONTROL_PLUGIN_ES_GET 5 // get extra stereo coefficient
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -43,6 +43,12 @@ static int control(int cmd,int arg){
|
|||||||
switch(cmd){
|
switch(cmd){
|
||||||
case AOCONTROL_PLUGIN_SET_LEN:
|
case AOCONTROL_PLUGIN_SET_LEN:
|
||||||
return CONTROL_OK;
|
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;
|
return CONTROL_UNKNOWN;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user