From owner-freebsd-hackers Mon Apr 3 22:52:59 1995 Return-Path: hackers-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id WAA04160 for hackers-outgoing; Mon, 3 Apr 1995 22:52:59 -0700 Received: from xi.dorm.umd.edu (xi.dorm.umd.edu [129.2.140.12]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id WAA04154 for ; Mon, 3 Apr 1995 22:52:58 -0700 Received: (from smpatel@localhost) by xi.dorm.umd.edu (8.6.11/8.6.9) id BAA01202; Tue, 4 Apr 1995 01:52:34 -0400 Date: Tue, 4 Apr 1995 01:52:34 -0400 (EDT) From: Sujal Patel X-Sender: smpatel@xi.dorm.umd.edu To: Steven Wallace cc: hackers@FreeBSD.org Subject: Re: Whee - I've got my MBONE feed.. In-Reply-To: <199504040526.AA12242@balboa.eng.uci.edu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: hackers-owner@FreeBSD.org Precedence: bulk On Mon, 3 Apr 1995, Steven Wallace wrote: > What software uses SNDCTL_DSP_SETFRAGMENT? What sound card are you using? > Have you tried recompiling the software? Have you tried using > an old one compiled for 1.1 or 2.0? The software I'm using is Paradise-netrek. I've tried both 2.0 compiled and -current compiled binaries. Here is a code fragment: *fragsize = 0; frag = 0x00080007; ioctl(dsp, SNDCTL_DSP_SETFRAGMENT, &frag); ioctl(dsp, SNDCTL_DSP_GETBLKSIZE, fragsize); if (!(*fragsize)) { printf ("Error: Couldn't Get Block Size\n"); } On Linux (same VoxWare drivers), this code fragment runs through ok. On FreeBSD, the GETBLKSIZE returns 0 causing the Error. Sujal