Problems with OSS
Michael Still
mikal at stillhq.com
Fri Mar 29 13:33:02 EST 2002
Hey all,
I was bored yesterday, and wrote a little wav decoder which plays via OSS
-- it takes about 200 lines of code. Anyway, this works fine for 8KHz mono
wav files, but for the stereo 44Khz file it just produces a clicking
noise.
I am having some troubles identifying what to set SNDCTL_DSP_SETFMT to for
this data. I have tried AFMT_U16_LE and AFMT_S16_LE, but neither worked.
Does anyone have any hints / sample code for this? Would it be more
helpful if I posted a URL to my code?
Thanks,
Mikal
--
Michael Still (mikal at stillhq.com) UMT+11hrs
More information about the linux
mailing list