blob: 0e93817601eb260f59c794b7fefe7ef66864e808 (
plain) (
blame)
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
|
--- Output/OSS/OSS.h.orig 2003-06-11 18:44:17 UTC
+++ Output/OSS/OSS.h
@@ -37,7 +37,19 @@
#include <stdio.h>
#include <string.h>
+#ifdef __FreeBSD__
+#include <sys/soundcard.h>
+#else
#include "soundcard.h"
+#endif
+
+#ifndef SNDCTL_DSP_GETPLAYVOL
+#define SNDCTL_DSP_GETPLAYVOL SOUND_MIXER_READ_PCM
+#endif
+
+#ifndef SNDCTL_DSP_SETPLAYVOL
+#define SNDCTL_DSP_SETPLAYVOL SOUND_MIXER_WRITE_PCM
+#endif
#include "xmms/plugin.h"
#include "libxmms/configfile.h"
@@ -82,6 +94,8 @@ int oss_get_output_time(void);
int oss_get_written_time(void);
void oss_set_audio_params(void);
+int oss_get_fd(void);
+
void oss_free_convert_buffer(void);
int (*oss_get_convert_func(int output, int input))(void **, int);
int (*oss_get_stereo_convert_func(int output, int input))(void **, int, int);
|