diff options
author | fredb <fredb@pkgsrc.org> | 2002-06-11 23:22:42 +0000 |
---|---|---|
committer | fredb <fredb@pkgsrc.org> | 2002-06-11 23:22:42 +0000 |
commit | 93bd6abaad510c925391ec0a7cd37a5874eb1902 (patch) | |
tree | dc1e1f481c741bf49fd7101bcbf75ab978836409 /graphics/mplayer-share | |
parent | a21d154ce3986f34d9cb86deb0e3f273864b933e (diff) | |
download | pkgsrc-93bd6abaad510c925391ec0a7cd37a5874eb1902.tar.gz |
Take advantage of some capabilities of the NetBSD audio driver
layer that are evidently not available with the Sun audio interface
it resembles, to better sync audio with video. The native "sun"
driver (the current default) should now work at least as well as
the "oss" driver (once the default, but now disabled) used to.
Diffstat (limited to 'graphics/mplayer-share')
-rw-r--r-- | graphics/mplayer-share/distinfo | 3 | ||||
-rw-r--r-- | graphics/mplayer-share/patches/patch-ab | 34 |
2 files changed, 36 insertions, 1 deletions
diff --git a/graphics/mplayer-share/distinfo b/graphics/mplayer-share/distinfo index 50a663ddede..cb70bc0aa65 100644 --- a/graphics/mplayer-share/distinfo +++ b/graphics/mplayer-share/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.2 2002/06/08 23:41:56 veego Exp $ +$NetBSD: distinfo,v 1.3 2002/06/11 23:22:43 fredb Exp $ SHA1 (mplayer/MPlayer-0.90pre5.tar.bz2) = 1a78063dd055ce99985001072fb2057156f8cd2a Size (mplayer/MPlayer-0.90pre5.tar.bz2) = 2438747 bytes @@ -9,3 +9,4 @@ Size (mplayer/mp-arial-iso-8859-2.zip) = 255907 bytes SHA1 (mplayer/koi8r-font.tar.bz2) = d8f44c101aaae32b5674c16da3549f5e520c077e Size (mplayer/koi8r-font.tar.bz2) = 68817 bytes SHA1 (patch-aa) = 2c1c6f35caf047f188871ac223d672ce453c26ec +SHA1 (patch-ab) = ba4990ac8df3b79dfd452530fe4aea66e26f4e7e diff --git a/graphics/mplayer-share/patches/patch-ab b/graphics/mplayer-share/patches/patch-ab new file mode 100644 index 00000000000..9b26eec9fe0 --- /dev/null +++ b/graphics/mplayer-share/patches/patch-ab @@ -0,0 +1,34 @@ +$NetBSD: patch-ab,v 1.1 2002/06/11 23:22:43 fredb Exp $ + +--- libao2/ao_sun.c.orig Mon Apr 29 03:47:30 2002 ++++ libao2/ao_sun.c +@@ -445,13 +445,19 @@ + } + #endif + +-#ifndef __OpenBSD__ ++#if !defined(__OpenBSD__) && !defined(__NetBSD__) + ioctl(audio_fd, AUDIO_GETINFO, &info); + if (queued_bursts - info.play.eof > 2) + return 0; + #endif + ++#if defined(__NetBSD__) ++ ioctl(audio_fd, AUDIO_GETINFO, &info); ++ return info.hiwat * info.blocksize - info.play.seek; ++#else + return ao_data.outburst; ++#endif ++ + } + + // plays 'len' bytes of 'data' +@@ -507,7 +513,7 @@ + static float get_delay(){ + audio_info_t info; + ioctl(audio_fd, AUDIO_GETINFO, &info); +-#ifdef __OpenBSD__ ++#if defined(__OpenBSD__) || defined(__NetBSD__) + return (float) info.play.seek/ (float)byte_per_sec ; + #else + if (info.play.samples && enable_sample_timing == RTSC_ENABLED) |