blob: e4f0069de00486801eb9d7cb971cd8b4fc87dce0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
$NetBSD: patch-ar,v 1.1.1.1 2009/08/05 02:37:11 tnn Exp $
Enable the sunaudio module to build on NetBSD.
--- media/libsydneyaudio/src/sydney_audio_sunaudio.c.orig 2009-06-29 18:15:03.000000000 +0200
+++ media/libsydneyaudio/src/sydney_audio_sunaudio.c
@@ -38,9 +38,14 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
+#if defined(__NetBSD__)
+#include <sys/ioctl.h>
+#include <sys/audioio.h>
+#else
#include <stropts.h>
#include <sys/audio.h>
#include <sys/mixer.h>
+#endif
#include <errno.h>
#include <stdio.h>
#include <pthread.h>
@@ -197,7 +202,7 @@ sa_stream_open(sa_stream_t *s)
s->default_rate = audio_info.play.sample_rate;
s->default_precision = audio_info.play.precision;
- AUDIO_INITINFO(&audio_info)
+ AUDIO_INITINFO(&audio_info);
audio_info.play.sample_rate = s->rate;
audio_info.play.channels = s->n_channels;
@@ -210,7 +215,7 @@ sa_stream_open(sa_stream_t *s)
if (err== -1)
return SA_ERROR_NOT_SUPPORTED;
- AUDIO_INITINFO(&audio_info)
+ AUDIO_INITINFO(&audio_info);
err=ioctl(fd,AUDIO_GETINFO,&audio_info);
if (err== -1)
{
|