From 56c1ab1c62e4e35c7b62d2b8143f6e9247f4c96c Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 15 Jan 2012 21:01:44 +0100 Subject: libao2: try to identify some audio outputs that have persistent volume The mplayer frontend (specifically, mixer.c) needs to know this. If the audio output doesn't remember the volume across reinitialization, the frontend will restore the volume settings. There is also the assumption that the volume setting isn't global in this case (i.e. changing it won't change the volume of other applications or annoy the user otherwise). None of these changes have been tested. I'm guessing that ESD and NAS do per-connection non-persistent volume settings. --- libao2/ao_nas.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libao2/ao_nas.c') diff --git a/libao2/ao_nas.c b/libao2/ao_nas.c index fb49c5e60e..d3274df9a5 100644 --- a/libao2/ao_nas.c +++ b/libao2/ao_nas.c @@ -424,6 +424,8 @@ static int init(int rate,int channels,int format,int flags) (void)flags; /* shut up 'unused parameter' warning */ + global_ao->no_persistent_volume = true; + nas_data=malloc(sizeof(struct ao_nas_data)); memset(nas_data, 0, sizeof(struct ao_nas_data)); -- cgit v1.2.3