From owner-freebsd-multimedia@FreeBSD.ORG Thu Jul 3 09:58:35 2003 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AA2E137B401 for ; Thu, 3 Jul 2003 09:58:35 -0700 (PDT) Received: from grumpy.dyndns.org (user-24-214-34-52.knology.net [24.214.34.52]) by mx1.FreeBSD.org (Postfix) with ESMTP id 99D6544015 for ; Thu, 3 Jul 2003 09:58:34 -0700 (PDT) (envelope-from dkelly@grumpy.dyndns.org) Received: from grumpy.dyndns.org (localhost [127.0.0.1]) by grumpy.dyndns.org (8.12.9/8.12.9) with ESMTP id h63GwX2s034461 for ; Thu, 3 Jul 2003 11:58:33 -0500 (CDT) (envelope-from dkelly@grumpy.dyndns.org) Received: from localhost (localhost [[UNIX: localhost]]) by grumpy.dyndns.org (8.12.9/8.12.9/Submit) id h63GwWdt034460 for multimedia@FreeBSD.ORG; Thu, 3 Jul 2003 11:58:33 -0500 (CDT) From: David Kelly To: multimedia@FreeBSD.ORG Date: Thu, 3 Jul 2003 11:58:32 -0500 User-Agent: KMail/1.5.2 References: <20030612014649.GA1525@r2d2.fdu.edu> <3EF238DA.3000302@vicor.com> <3F04403A.9080009@mitre.org> In-Reply-To: <3F04403A.9080009@mitre.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200307031158.32606.dkelly@HiWAAY.net> Subject: Re: Problems playing certain wav files X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Jul 2003 16:58:35 -0000 On Thursday 03 July 2003 09:39 am, Jason Andresen wrote: > > This almost sounds like another face to the "end of the sound is > clipped" problem that Newpcm has always had. It used to be that on > very small files (interface sounds and whatnot, you just wouldn't > hear anything. I guess the new card sends an interrupt back when > it's done playing the sound or something that tells FreeBSD that it > can let the program using the soundcard finish shutting down. I have been bit by the problem described above. Found that I couldn't trust the "close sound device when finished" routine. Or maybe it was the "is buffer empty and ready for more?" In any case, writing the data to the sound device and knowing there were X samples at Y rate the device was safe to close after X/Y seconds and no sound was lost. OTOH an Aureal 8810 using /usr/ports/audio/aureal-kmod always lost the first 250 ms or so of sound written to it after opening. Back to the immediate topic at hand, playing .WAV files. Not all .WAV players are equal. The .WAV format defines the playback parameters in a header, but there may be many segments in the file where the parameters change, or not change. Multisgements are not wildly common so many players don't know how to handle it. See wavplay and waveplay in ports, one does, the other doesn't. In short, I suggest installing both wavplay and waveplay. Then play the problem .WAV file with each and see what happens. -- David Kelly N4HHE, dkelly@hiwaay.net ===================================================================== The human mind ordinarily operates at only ten percent of its capacity -- the rest is overhead for the operating system.