From owner-freebsd-multimedia@FreeBSD.ORG Mon Jun 16 13:51:21 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 C8EAD37B401 for ; Mon, 16 Jun 2003 13:51:21 -0700 (PDT) Received: from sploot.vicor-nb.com (sploot.vicor-nb.com [208.206.78.81]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1845D43F85 for ; Mon, 16 Jun 2003 13:51:21 -0700 (PDT) (envelope-from kmarx@vicor.com) Received: from vicor.com (localhost [127.0.0.1]) by sploot.vicor-nb.com (8.12.8/8.12.8) with ESMTP id h5GKhnh9051391; Mon, 16 Jun 2003 13:43:49 -0700 (PDT) (envelope-from kmarx@vicor.com) Message-ID: <3EEE2C05.3000506@vicor.com> Date: Mon, 16 Jun 2003 13:43:49 -0700 From: Ken Marx User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.3b) Gecko/20030402 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Lucas Wilcox 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> <20030614205151.GA6045@r2d2.ri.cox.net> In-Reply-To: <20030614205151.GA6045@r2d2.ri.cox.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-multimedia@freebsd.org cc: Randy Pratt 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 20:51:22 -0000 Hi, Just to add another data point: We have a box here: 4.8-RELEASE FreeBSD 4.8-RELEASE #1: Thu Apr 3 11:55:56 PST 2003 pcm0: at io 0x1440 irq 9 (1p/1r/2v channels duplex) that plays *both* pre and post sox'd versions of the beep file fine. I wonder if it's just something with the Maestro chip support. I don't see any diffs between 4.7/8 in pci/maestro*. I know someone who has a maestro-2 chip on his laptop at home, running 5.x. I'll send your file to him and let you know. k Lucas Wilcox wrote: > 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 >>> >>> > _______________________________________________ > 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 Speaking candidly, I say that we intend to eliminate the deadwood and stop beating around the bush on the problem management. - http://www.bigshed.com/cgi-bin/speak.cgi