mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2026-02-22 01:40:08 -05:00
use ESPIPE instead of EPIPE when ESTRPIPE not defined
This commit is contained in:
parent
fea9fc2298
commit
fe8657749d
2 changed files with 5 additions and 1 deletions
|
|
@ -26,7 +26,7 @@
|
||||||
#define EBADFD EBADF
|
#define EBADFD EBADF
|
||||||
#endif
|
#endif
|
||||||
#ifndef ESTRPIPE
|
#ifndef ESTRPIPE
|
||||||
#define ESTRPIPE EPIPE
|
#define ESTRPIPE ESPIPE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef __u16
|
#ifndef __u16
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,10 @@
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
|
#ifndef ESTRPIPE
|
||||||
|
#define ESTRPIPE ESPIPE
|
||||||
|
#endif
|
||||||
|
|
||||||
static char *device = "plughw:0,0"; /* playback device */
|
static char *device = "plughw:0,0"; /* playback device */
|
||||||
static snd_pcm_format_t format = SND_PCM_FORMAT_S16; /* sample format */
|
static snd_pcm_format_t format = SND_PCM_FORMAT_S16; /* sample format */
|
||||||
static unsigned int rate = 44100; /* stream rate */
|
static unsigned int rate = 44100; /* stream rate */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue