diff options
author | wm4 <wm4@mplayer2.org> | 2012-04-28 00:39:19 +0200 |
---|---|---|
committer | wm4 <wm4@mplayer2.org> | 2012-04-28 00:54:26 +0200 |
commit | 87f4cafe9c0881743d1117c2e8cd7e3376e33302 (patch) | |
tree | f41caa5aad8969d769a777c0a7912751721a66bd /mixer.h | |
parent | 1324eaece08d84fbe3eb539642dba99b74dd1c07 (diff) | |
parent | b711624ef350d1e971f5fcc57eb4af9f74233d2a (diff) | |
download | mpv-87f4cafe9c0881743d1117c2e8cd7e3376e33302.tar.bz2 mpv-87f4cafe9c0881743d1117c2e8cd7e3376e33302.tar.xz |
Merge remote-tracking branch 'origin/master'
Conflicts:
command.c
libao2/ao_alsa.c
libao2/ao_dsound.c
libao2/ao_pulse.c
libao2/audio_out.h
mixer.c
mixer.h
mplayer.c
Replace my mixer changes with uau's implementation, which is based on
my code.
Diffstat (limited to 'mixer.h')
-rw-r--r-- | mixer.h | 22 |
1 files changed, 11 insertions, 11 deletions
@@ -28,27 +28,27 @@ typedef struct mixer { struct ao *ao; af_stream_t *afilter; int volstep; - bool muted; - bool mute_emulation; bool softvol; float softvol_max; - float last_l, last_r; - float restore_vol_l, restore_vol_r; - bool restore_volume; + bool muted; + bool muted_by_us; + bool muted_using_volume; + float vol_l, vol_r; + /* Contains ao driver name or "softvol" if volume is not persistent + * and needs to be restored after the driver is reinitialized. */ + const char *restore_volume; float balance; - bool restore_balance; } mixer_t; -void mixer_reinit(mixer_t *mixer); -void mixer_uninit(mixer_t *mixer); +void mixer_reinit(struct mixer *mixer, struct ao *ao); +void mixer_uninit(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); void mixer_decvolume(mixer_t *mixer); void mixer_getbothvolume(mixer_t *mixer, float *b); -void mixer_mute(mixer_t *mixer); -bool mixer_getmuted(mixer_t *mixer); -void mixer_setmuted(mixer_t *mixer, bool mute); +void mixer_setmute(mixer_t *mixer, bool mute); +bool mixer_getmute(mixer_t *mixer); void mixer_getbalance(mixer_t *mixer, float *bal); void mixer_setbalance(mixer_t *mixer, float bal); |