diff options
author | Uoti Urpala <uau@mplayer2.org> | 2012-01-21 09:28:07 +0200 |
---|---|---|
committer | Uoti Urpala <uau@mplayer2.org> | 2012-03-20 14:51:32 +0200 |
commit | ec58e5a3848f82681839eaa15d2c6912d92e74ed (patch) | |
tree | 82bd6ea3411d9c2c5fcd18b9d4cb3f166db57ee3 /libao2 | |
parent | 7a699cea2849b2ef3f0a7a0702b74c33327ef8a9 (diff) | |
download | mpv-ec58e5a3848f82681839eaa15d2c6912d92e74ed.tar.bz2 mpv-ec58e5a3848f82681839eaa15d2c6912d92e74ed.tar.xz |
options: move mixer.h options to struct
Diffstat (limited to 'libao2')
-rw-r--r-- | libao2/audio_out.h | 1 | ||||
-rw-r--r-- | libao2/audio_out_internal.h | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/libao2/audio_out.h b/libao2/audio_out.h index e96e123700..cbd913656b 100644 --- a/libao2/audio_out.h +++ b/libao2/audio_out.h @@ -80,6 +80,7 @@ struct ao { bool untimed; const struct ao_driver *driver; void *priv; + struct MPOpts *opts; }; extern char *ao_subdevice; diff --git a/libao2/audio_out_internal.h b/libao2/audio_out_internal.h index 67bcfa953d..215428fb0e 100644 --- a/libao2/audio_out_internal.h +++ b/libao2/audio_out_internal.h @@ -19,6 +19,8 @@ #ifndef MPLAYER_AUDIO_OUT_INTERNAL_H #define MPLAYER_AUDIO_OUT_INTERNAL_H +#include "options.h" + // prototypes: //static ao_info_t info; static int control(int cmd, void *arg); @@ -33,6 +35,8 @@ static void audio_resume(void); extern struct ao *global_ao; #define ao_data (*global_ao) +#define mixer_channel (global_ao->opts->mixer_channel) +#define mixer_device (global_ao->opts->mixer_device) #define LIBAO_EXTERN(x) const struct ao_driver audio_out_##x = { \ .info = &info, \ |