changeset 2257:b55720f38a3c

Reset volume after the buffer has been played.
author Jonathan Schleifer <js@webkeks.org>
date Fri, 21 Dec 2007 16:36:11 +0100
parents 448d9e2aa126
children 44d97ff5d0e3
files src/OSS4/audio.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/OSS4/audio.c	Wed Dec 19 17:51:50 2007 +0200
+++ b/src/OSS4/audio.c	Fri Dec 21 16:36:11 2007 +0100
@@ -435,8 +435,6 @@
         return;
     going = 0;
 
-    oss_set_volume(start_vol_l, start_vol_r);
-
     g_thread_join(buffer_thread);
 
     g_free(device_name);
@@ -444,6 +442,7 @@
     wr_index = 0;
     rd_index = 0;
 
+    oss_set_volume(start_vol_l, start_vol_r);
     close_mixer_device();
 }