Mercurial > audlegacy-plugins
diff src/OSS/audio.c @ 74:11d45400f5ed trunk
[svn] The mixer device isn't opened and closed for every action now, instead
it gets opened as soon as needed and closed if it's not needed anymore.
This fixes a lot of bugs with the mixer of the OSS plugin, including
the one that settigns the volume on OpenBSD via OSS didn't work at all.
| author | js |
|---|---|
| date | Mon, 02 Oct 2006 11:29:31 -0700 |
| parents | 3da1b8942b8b |
| children | 12a744b04174 |
line wrap: on
line diff
--- a/src/OSS/audio.c Mon Oct 02 10:49:55 2006 -0700 +++ b/src/OSS/audio.c Mon Oct 02 11:29:31 2006 -0700 @@ -19,6 +19,8 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +extern void close_mixer_device(); + #include <glib.h> #include <audacious/util.h> #include <string.h> @@ -497,6 +499,8 @@ oss_free_convert_buffer(); wr_index = 0; rd_index = 0; + + close_mixer_device(); } void
