fhandler_dsp.cc (fhandler_dev_dsp::ioctl): add SNDCTL_DSP_GETFMTS support
David Huang
hzhr@21cn.com
Tue Jan 14 01:48:00 GMT 2003
Make code like this work:
/* Get a list of supported hardware formats */
if ( ioctl(audio_fd, SNDCTL_DSP_GETFMTS, &value) < 0 ) {
SDL_SetError("Couldn't get audio format list");
return(-1);
}
(from SDL-1.2.5/src/audio/dsp/SDL_dspaudio.c, yes, seems like *Native* cygwin libSDL works)
I don't know exactly which hardware formats can the /dev/dsp audio device support,
but looks like it supports AFMT_S16_LE, AFMT_U8 and AFMT_S8.
Thanks.
2003-01-14 David Huang <davehzhr@hotmail.com>
* fhandler_dsp.cc (fhandler_dsp::ioctl): Add SNDCTL_DSP_GETFMTS
limited support.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: fhandler_dsp.cc.patch
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20030114/4cfcd270/attachment.ksh>
More information about the Cygwin-patches
mailing list