1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-04 22:33:27 +00:00
freebsd-ports/audio/mxv/files/patch-ai
Michael Haro 8dac833ab2 update to 1.20
PR:		12624
Submitted by:	Jason Brazile <jason.brazile@netcetera.ch>
2000-02-14 21:03:05 +00:00

41 lines
1.2 KiB
Plaintext

*** old/vw_converter.C Thu Jan 30 00:22:41 1997
--- vw_converter.C Mon Jul 12 15:28:20 1999
***************
*** 27,33 ****
--- 27,37 ----
#pragma implementation
#endif
+ #ifdef __FreeBSD__
+ #include <machine/soundcard.h>
+ #else
#include <sys/soundcard.h>
+ #endif
#include "localdefs.h"
#include "application.h"
#include "vw_converter.h"
***************
*** 114,122 ****
fprintf(stderr, "setting frag size code to 0x%x\n", sizeCode);
#endif
if (!ioctl (SNDCTL_DSP_SETFRAGMENT, (char *) &sizeCode))
error("Unable to set fragment size.");
! else if (!ioctl(SNDCTL_DSP_SETFMT, (char *) &confirmedFormat))
error("Unable to set sample format.");
else if(confirmedFormat != sampleFormat)
error("This sample format not supported by hardware.");
--- 118,129 ----
fprintf(stderr, "setting frag size code to 0x%x\n", sizeCode);
#endif
+ #ifndef __FreeBSD__
if (!ioctl (SNDCTL_DSP_SETFRAGMENT, (char *) &sizeCode))
error("Unable to set fragment size.");
! else
! #endif
! if (!ioctl(SNDCTL_DSP_SETFMT, (char *) &confirmedFormat))
error("Unable to set sample format.");
else if(confirmedFormat != sampleFormat)
error("This sample format not supported by hardware.");