Re: .wav output and SB16

Daniel J. Rodriksson (djr@dit.upm.es)
Thu, 12 Nov 1998 12:10:34 +0100


Zlatko Calusic wrote:
>
> Dave Meyer <dmeyer@std.saic.com> writes:
>
> > According to Michael K Vance:
> > > Rik van Riel wrote:
> > > > On Mon, 9 Nov 1998, Michael K Vance wrote:
> > >
> > > > This is because .wav and .au data includes special
> > > > header data that can be used to configure the sound
> > > - Programs (such as Quake--ahem) now have incredibly garbled output
> >
> > I've noticed this myself. Sound under quake is fine with 2.1.125ac3,
> > but with 2.1.127 is complete gibberish.
> >
> > Dave
>
> Sound Blaster full duplex patch added in 2.1.126, has broken sound in
> Quake and other software.
>
> You can use the following patch to remove SBFDX support and restore
> sound behaviour in Quake. Patch was made for 2.1.126, but hopefully it
> applies cleanly to 2.1.127. Enjoy!
>

Before assigning the problem to the full duplex patch I'd like
to say that catting a 16 bit file ( wav ) to /dev/dsp should
produce nothing but rubbish since /dev/dsp will play in 8 bit
mode.

Try the same to /dev/dspW ( major 14 minor 5 ) and see what
happens ( it will probably not be the same as played with
a special program due to sampling and playing rate differences
but it will sound fine ).

Only programs mmapping the sb16 device into memory will have
problems, and I'd be surprised if cat did.

-- 
---------------------------------------------------------------|
|         Remember Scotch: 'THERE CAN BE ONLY ONE'             |
---------------------------------------------------------------|
| Daniel J. Rodriksson       | B-204.1,ETSI Telecomunicaciones |
| djr@dit.upm.es             | Avda Paraninfo S/N              |
| http://www.dit.upm.es/~djr | 28040 Madrid                    |
| +34-1-3367366 + ext 442    | SPAIN                           |
|--------------------------------------------------------------|

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/