[PATCH] Free OSS device on pause
Metathronius Galabant <[email protected]> Sat, 07 Oct 2006 13:19:43 +0200
| Newsgroups | gmane.comp.multimedia.xmms.devel |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format.
--------------050900060107090104030004
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Hi,
please consider the following trivial patch for 1.2.11 (if there will be
one). It frees the dsp interface on pause (much like mplayer does).
Cheers,
M
--------------050900060107090104030004
Content-Type: text/plain;
name="oss_drop_on_pause.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="oss_drop_on_pause.patch"
Index: Output/OSS/audio.c
===================================================================
--- Output/OSS/audio.c (revision 1)
+++ Output/OSS/audio.c (revision 2)
@@ -562,8 +562,11 @@
* We lose some data here that is sent to the
* soundcard, but not yet played. I don't
* think this is worth fixing.
+ *
+ * Close device to let others access it -mg
*/
ioctl(fd, SNDCTL_DSP_RESET, 0);
+ close(fd);
}
else if (unpause && paused)
{
--------------050900060107090104030004
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
xmms-devel mailing list
[email protected]
http://lists.xmms.org/mailman/listinfo/xmms-devel
--------------050900060107090104030004--