summaryrefslogtreecommitdiffstats
path: root/sys/dev/sound/pci/vibes.c
diff options
context:
space:
mode:
authororion <orion@FreeBSD.org>2001-03-21 14:10:51 +0000
committerorion <orion@FreeBSD.org>2001-03-21 14:10:51 +0000
commitc5f8fef9c1932b78349a5c7878ffd11c397bd6ad (patch)
treedd03d0935b33c9aa86777a76aa9c4426255d5a3d /sys/dev/sound/pci/vibes.c
parentd53420a15931c30ca1d50bdab8b3cf26f0870432 (diff)
downloadFreeBSD-src-c5f8fef9c1932b78349a5c7878ffd11c397bd6ad.zip
FreeBSD-src-c5f8fef9c1932b78349a5c7878ffd11c397bd6ad.tar.gz
Change type of channel speed variable from "int" to "u_int32_t" to
avoid overflow when scaling playback rate. Fixes 44.1k playback from being 48k (I am deaf to this difference...).
Diffstat (limited to 'sys/dev/sound/pci/vibes.c')
-rw-r--r--sys/dev/sound/pci/vibes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/sound/pci/vibes.c b/sys/dev/sound/pci/vibes.c
index 3ffa68f..28ce36f 100644
--- a/sys/dev/sound/pci/vibes.c
+++ b/sys/dev/sound/pci/vibes.c
@@ -58,8 +58,8 @@ struct sc_chinfo {
struct sc_info *parent;
pcm_channel *channel;
snd_dbuf *buffer;
+ u_int32_t fmt, spd;
int dir;
- int fmt, spd;
int dma_active, dma_was_active;
};
OpenPOWER on IntegriCloud