From c5f8fef9c1932b78349a5c7878ffd11c397bd6ad Mon Sep 17 00:00:00 2001 From: orion Date: Wed, 21 Mar 2001 14:10:51 +0000 Subject: 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...). --- sys/dev/sound/pci/vibes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/dev/sound/pci/vibes.c') 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; }; -- cgit v1.1