From owner-freebsd-multimedia@FreeBSD.ORG Mon Jun 16 05:47:02 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 BD05737B409 for ; Mon, 16 Jun 2003 05:47:02 -0700 (PDT) Received: from hoemail1.firewall.lucent.com (hoemail1.lucent.com [192.11.226.161]) by mx1.FreeBSD.org (Postfix) with ESMTP id E915F43FB1 for ; Mon, 16 Jun 2003 05:47:00 -0700 (PDT) (envelope-from lucas@smtp.dam.brown.edu) Received: from r2d2.box (h135-222-112-181.lucent.com [135.222.112.181]) ESMTP id h5GCktO27742 for ; Mon, 16 Jun 2003 07:46:56 -0500 (CDT) Received: from me (localhost [127.0.0.1]) by r2d2.box (Postfix) with SMTP id 8ABCE910; Sat, 14 Jun 2003 16:51:52 -0400 (EDT) Received: (nullmailer pid 6428 invoked by uid 1000); Sat, 14 Jun 2003 20:51:52 -0000 Date: Sat, 14 Jun 2003 16:51:52 -0400 From: Lucas Wilcox To: Randy Pratt Message-ID: <20030614205151.GA6045@r2d2.ri.cox.net> References: <20030612014649.GA1525@r2d2.fdu.edu> <3EEA1948.7000100@vicor.com> <20030613191012.GA14158@r2d2.mh.lucent.com> <3EEA2FDE.1080508@vicor.com> <20030614143801.GB4882@r2d2.ri.cox.net> <20030614140515.694acb34.rpratt1950@earthlink.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030614140515.694acb34.rpratt1950@earthlink.net> User-Agent: Mutt/1.4.1i X-Operating-System: FreeBSD r2d2 4.8-RELEASE FreeBSD 4.8-RELEASE cc: kmarx@vicor.com cc: Lucas Wilcox cc: freebsd-multimedia@freebsd.org 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: Mon, 16 Jun 2003 12:47:03 -0000 Randy, This did not work for me. I am posting this to the mailing list so it might help other people know what we tried as it may work for them. Lucas On Sat, Jun 14, 2003 at 02:05:15PM -0400, Randy Pratt wrote: > Lucas, > > try this: > sox KDE_Beep_ClassicBeep.wav -w -s -r22050 beep.22050.wav > > I think there is a typo in the example that you had (used "_" instead of "."). > > Doing that will allow it to convert and it will work using the sox "play". > > If this works for you, you might want to post back to the list showing > what you did to make it work. It'll be helpful for others when they > search the archives! > > I'm not subscribed to the group and just read the online stuff and > occasionally post/answer. > > Randy > > On Sat, 14 Jun 2003 10:38:02 -0400 > Lucas Wilcox wrote: > > > I tried to change the sample rate on the files with no luck. See the > > other email I just sent to randy but I tested my desktop machine and it > > can play the files unchanged. I am also sending this email to randy to > > see if changing the sample rate will help him play the weird wavefiles. > > > > I am now thinking the problem is either a difference between 4.7 and 4.8 > > or it is in the driver. If I new more about the sound driver structure > > it might be something common to our cards that is not apart of the > > driver for my desktop card. > > > > Lucas > > > > On Fri, Jun 13, 2003 at 01:11:10PM -0700, Ken Marx wrote: > > > Hey there, > > > > > > So I bumbled around on this for a bit. I believe it's simply to > > > do with the rather odd sample rate of 22254 in the beep file: > > > > > > KDE_Beep_ClassicBeep_wav: RIFF (little-endian) data, WAVE audio, Microsoft > > > PCM, 8 bit, mono 22254 Hz > > > > > > If I load into snack (a very cool utility from > > > http://www.speech.kth.se/snack/) > > > it warns of needing to convert from a non-recognized sample rate. It > > > seems to do this and then play it fine. > > > > > > I then tried using sox to convert it: > > > > > > % sox KDE_Beep_ClassicBeep_wav -w -s -r22050 beep.22050.wav > > > > > > (The -s avoids a warning about u-law and unsigned values). > > > > > > The above plays fine for me. Not really sure why I have to > > > use 16 bit samples. Leaving the -w gives 8 bit samples, but > > > it doesn't play. I'm attaching my converted beep > > > for your inbox and listening pleasure. > > > > > > Btw, my laptop hardware is: > > > pcm0: at memory 0xefff8000 irq 11 (4p/2r/0v > > > channels duplex) > > > > > > Hope this helps some. If so, feel free to post back to the > > > group. I'm too shy. > > > > > > best regards, > > > k. > > > > > > Lucas Wilcox wrote: > > > >I would like that. > > > > > > > >The wavefiles are from some kde distribution. I found them in > > > >/usr/local/share/sounds. I have attached them to this email. I can > > > >hear KDE_Notify.wav but I hear nothing from KDE_Beep_ClassicBeep.wav. > > > >It would be interesting to know what you experience. What sound > > > >hardware do you have? > > > > > > > >Thanks, > > > >Lucas > > > > > > > >On Fri, Jun 13, 2003 at 11:34:48AM -0700, Ken Marx wrote: > > > > > > > >>Hi, > > > >> > > > >>I'm running 4.8-RC FreeBSD and could try your wavefiles for what it's > > > >>worth. Send them along if you wish. > > > >> > > > >>k > > > >> > > > >>Lucas Wilcox wrote: > > > >> > > > >>>Hi, > > > >>>I recently install freebsd 4.8 on my laptop and am having some problems > > > >>>with the sound. First, xmms works great no problems. For some wave > > > >>>files I can play them no problem and some will not play. No error > > > >>>message, wavplay just quits right away without playing the sound. What > > > >>>can I do to trouble-shoot this better? My main concern is that the > > > >>>sound from xmame is not working. It works in freebsd 4.7 on my desktop > > > >>>machine. > > > >>> > > > >>>Here is my setup: > > > >>>uname -a > > > >>>FreeBSD r2d2 4.8-RELEASE FreeBSD 4.8-RELEASE #1: Sun Apr 20 00:06:26 > > > >>>EDT 2003 root@r2d2:/usr/obj/usr/src/sys/R2D2 i386 > > > >>> > > > >>>cat /dev/sndstat > > > >>>FreeBSD Audio Driver (newpcm) > > > >>>Installed devices: > > > >>>pcm0: at I/O port 0x3000 irq 11 > > > >>>(4p/0r/4v channels duplex) > > > >>> > > > >>>I also have in my /etc/sysctl.conf > > > >>>hw.snd.pcm0.vchans=4 > > > >>> > > > >>> > > > >>>I can provide working and not working wave files if anyone is > > > >>>interested. Thanks for everyones time. > > > >>> > > > >>>Lucas > > > >>>_______________________________________________ > > > >>>freebsd-multimedia@freebsd.org mailing list > > > >>>http://lists.freebsd.org/mailman/listinfo/freebsd-multimedia > > > >>>To unsubscribe, send any mail to > > > >>>"freebsd-multimedia-unsubscribe@freebsd.org" > > > >>> > > > >>> > > > >> > > > >>-- > > > >>Ken Marx, kmarx@vicor-nb.com > > > >>Get to work on the market reality!! > > > >> - http://www.bigshed.com/cgi-bin/speak.cgi > > > > > > -- > > > Ken Marx, kmarx@vicor-nb.com > > > We are empowered to get lean and mean and set the agenda regarding > > > client/server issue. > > > - http://www.bigshed.com/cgi-bin/speak.cgi > > > >