Problems playing certain wav files

Lucas Wilcox lucasw at dam.brown.edu
Mon Jun 16 05:47:03 PDT 2003


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 <lucasw at dam.brown.edu> 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: <Yamaha DS-1E (YMF744)> 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 at r2d2:/usr/obj/usr/src/sys/R2D2  i386
> > > >>>
> > > >>>cat /dev/sndstat
> > > >>>FreeBSD Audio Driver (newpcm)
> > > >>>Installed devices:
> > > >>>pcm0: <ESS Technology Maestro-2E> 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 at freebsd.org mailing list
> > > >>>http://lists.freebsd.org/mailman/listinfo/freebsd-multimedia
> > > >>>To unsubscribe, send any mail to 
> > > >>>"freebsd-multimedia-unsubscribe at freebsd.org"
> > > >>>
> > > >>>
> > > >>
> > > >>-- 
> > > >>Ken Marx, kmarx at vicor-nb.com
> > > >>Get to work on the market reality!!
> > > >>		- http://www.bigshed.com/cgi-bin/speak.cgi
> > > 
> > > -- 
> > > Ken Marx, kmarx at 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
> > 
> > 


More information about the freebsd-multimedia mailing list