diff options
author | Jacob Meuser <jakemsr@cvs.openbsd.org> | 2007-07-09 09:13:05 +0000 |
---|---|---|
committer | Jacob Meuser <jakemsr@cvs.openbsd.org> | 2007-07-09 09:13:05 +0000 |
commit | fb2fdf3618a85d35ca851fb445247e928599d9cf (patch) | |
tree | 10d584adc53f0e02e31094b6013f15f3f2990291 /sys/dev/audio.c | |
parent | fdc6dbe3e5557f83736180c8684fceb5dcc9147c (diff) |
give the user what they expect instead of what we're working with
by taking into account expansion we may have done in cases such as
playing monoaural media on a device that only plays stereo, like
auich(4).
Diffstat (limited to 'sys/dev/audio.c')
-rw-r--r-- | sys/dev/audio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/audio.c b/sys/dev/audio.c index cc814273ea8..739b32f8256 100644 --- a/sys/dev/audio.c +++ b/sys/dev/audio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: audio.c,v 1.60 2007/07/06 04:40:20 jakemsr Exp $ */ +/* $OpenBSD: audio.c,v 1.61 2007/07/09 09:13:04 jakemsr Exp $ */ /* $NetBSD: audio.c,v 1.119 1999/11/09 16:50:47 augustss Exp $ */ /* @@ -1721,7 +1721,7 @@ audio_ioctl(dev, cmd, addr, flag, p) * sample of what we write next? */ case AUDIO_WSEEK: - *(u_long *)addr = sc->sc_pr.used; + *(u_long *)addr = sc->sc_pr.used / sc->sc_pparams.factor; break; case AUDIO_SETINFO: |