From 296531ad0050fbc38fb1cf7823f6e22f97d502b1 Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 19 Sep 2013 14:31:43 +0200 Subject: mixer: minor refactoring Let struct mixer access access MPOpts to simplify some things. Rename some variables and functions. There should be no functional changes. --- audio/mixer.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'audio/mixer.h') diff --git a/audio/mixer.h b/audio/mixer.h index 3160c20cfe..b22bba0310 100644 --- a/audio/mixer.h +++ b/audio/mixer.h @@ -28,11 +28,10 @@ enum { }; typedef struct mixer { + struct MPOpts *opts; struct ao *ao; - struct af_stream *afilter; - int volstep; + struct af_stream *af; int softvol; - float softvol_max; bool muted; bool muted_by_us; bool muted_using_volume; @@ -45,8 +44,8 @@ typedef struct mixer { bool user_set_volume; } mixer_t; -void mixer_reinit(struct mixer *mixer, struct ao *ao); -void mixer_uninit(struct mixer *mixer); +void mixer_reinit_audio(struct mixer *mixer, struct ao *ao, struct af_stream *af); +void mixer_uninit_audio(struct mixer *mixer); void mixer_getvolume(mixer_t *mixer, float *l, float *r); void mixer_setvolume(mixer_t *mixer, float l, float r); void mixer_incvolume(mixer_t *mixer); -- cgit v1.2.3