Subject: Re: [linux-audio-dev] 8bit sound wav playing to a 16bit sound card...
From: Derrick (derrick_AT_logicalsi.com)
Date: Fri Jun 13 2003 - 17:39:23 EEST
Downloaded the xmms dirver and installed the libsndfile library but XMMS still
plays the sound fast... And also Crashes... I'm wondering if it's just my
sound card. :-(``````
On Thursday 12 June 2003 17:19, Erik de Castro Lopo wrote:
> On Thu, 12 Jun 2003 11:18:53 -0400
>
> Derrick <derrick_AT_logicalsi.com> wrote:
> > I'm new to OSS Programming, and I'm attempting to play some 8bit wav
> > files. However OSS is telling me that my sound card will not play 8bit ,
> > only 16bit. If I force it. The sound changes pitch, and is very fast. (
> > obviously ).
> >
> > Is there anyway to convert 8bit to 16bit on the fly? I've noticed that
> > XMMS also fails to play the 8bit wav file correctly.
>
> You can fix this by disabling XMMS's built in WAV reader and using
> XMMS_Sndfile instead:
>
> http://www.zip.com.au/~erikd/XMMS/
>
> which will also allow you to play a large number of other file types.
>
> > I've even tryed to convert the file from 8bit to 16bit using SOX. But
> > with the same results. I would like to support 8bit file wavs in my
> > program as MOST of the wavs available are in 8bit format...
>
> For reading sound files from within a program libsndfile:
>
> http://www.zip.com.au/~erikd/libsndfile/
>
> which is required by XMMS_Sndfile anyway. It contains an example program
> which uses OSS to play back any sound file it can read.
>
> Erik
-- I was in a bar and I walked up to a beautiful woman and said, "Do you live around here often?" She said, "You're wearing two different-color socks." I said, "Yes, but to me they're the same because I go by thickness." She said, "How do you feel?" And I said, "You know when you're sitting on a chair and you lean back so you're just on two legs and you lean too far so you almost fall over but at the last second you catch yourself? I feel like that all the time..." -- Steven Wright, "Gentlemen's Quarterly"
This archive was generated by hypermail 2b28 : Fri Jun 13 2003 - 17:59:05 EEST