mirror of https://github.com/python/cpython
This module has a poor name, since it can be used under FreeBSD and
Linux. Perhaps winaudio would be better, as it would offend both parties equally. tg@freebsd.org: allow this module to compile under FreeBSD (he suggests voxwareaudio)
This commit is contained in:
parent
4bcc7c5119
commit
a3895c0d29
|
@ -27,10 +27,20 @@
|
|||
#endif
|
||||
|
||||
#include <sys/ioctl.h>
|
||||
#if defined(linux)
|
||||
#include <linux/soundcard.h>
|
||||
|
||||
typedef unsigned long uint32_t;
|
||||
|
||||
#elif defined(__FreeBSD__)
|
||||
#include <machine/soundcard.h>
|
||||
|
||||
#ifndef SNDCTL_DSP_CHANNELS
|
||||
#define SNDCTL_DSP_CHANNELS SOUND_PCM_WRITE_CHANNELS
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
typedef struct {
|
||||
PyObject_HEAD;
|
||||
int x_fd; /* The open file */
|
||||
|
|
Loading…
Reference in New Issue