annotate Output/esd/mixer.c @ 23:0db4a1dc75c4 trunk

[svn] libvisual. P3 detection appears to be borked. I'll work on it later.
author nenolod
date Mon, 24 Oct 2005 23:13:56 -0700
parents cb178e5ad177
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1 /* BMP - Cross-platform multimedia player
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2 * Copyright (C) 2003-2004 BMP development team.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3 *
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4 * Based on XMMS:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5 * Copyright (C) 1998-2003 XMMS development team.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6 *
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
7 * This program is free software; you can redistribute it and/or modify
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
8 * it under the terms of the GNU General Public License as published by
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
9 * the Free Software Foundation; either version 2 of the License, or
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
10 * (at your option) any later version.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
11 *
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
12 * This program is distributed in the hope that it will be useful,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
15 * GNU General Public License for more details.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
16 *
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
17 * You should have received a copy of the GNU General Public License
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
18 * along with this program; if not, write to the Free Software
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
19 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
20 */
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
21
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
22 #include <stdio.h>
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
23 #include <stdlib.h>
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
24 #include <string.h>
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
25 #include <esd.h>
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
26
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
27 #include <unistd.h>
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
28 #include <fcntl.h>
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
29 #include <sys/types.h>
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
30 #include <sys/ioctl.h>
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
31 #include <sys/stat.h>
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
32
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
33 #include "esdout.h"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
34
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
35 #ifdef HAVE_OSS
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
36 # include <Output/OSS/soundcard.h>
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
37 # define OSS_AVAILABLE TRUE
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
38 #else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
39 # define OSS_AVAILABLE FALSE
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
40 #endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
41
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
42 #include <libaudacious/util.h>
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
43
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
44
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
45
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
46 static void esdout_get_oss_volume(int *l, int *r);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
47 static void esdout_set_oss_volume(int l, int r);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
48
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
49
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
50 static int player = -1;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
51 static int lp = 100, rp = 100;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
52
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
53 /*
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
54 * Find the stream id, and set stream volume to 'persistent' value.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
55 */
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
56 void
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
57 esdout_mixer_init(void)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
58 {
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
59 esdout_fetch_volume(NULL, NULL);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
60 if (!(OSS_AVAILABLE && esd_cfg.use_oss_mixer && !esd_cfg.use_remote))
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
61 esdout_set_volume(lp, rp);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
62 }
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
63
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
64 /*
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
65 * Grab the stream volume from the server. The problem here is that
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
66 * ESD does not have a built-in function for finding the player ID of
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
67 * a specific player - nor does it let us know what the player ID is
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
68 * when the player is created! So, we grab 'allinfo' and scan the
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
69 * returned player list for the string which we know is our player
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
70 * name (esd_cfg.playername) This function seems to take a long time
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
71 * to run... I'm not sure where to start optimizing, however...
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
72 */
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
73 void
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
74 esdout_fetch_volume(int *l, int *r)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
75 {
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
76 int fd;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
77 esd_info_t *all_info = NULL;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
78 esd_player_info_t *info;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
79
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
80 fd = esd_open_sound(esd_cfg.hostname);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
81 all_info = esd_get_all_info(fd);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
82
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
83 /* scan linked list for our playername */
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
84 for (info = all_info->player_list; info != NULL; info = info->next)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
85 if (!strcmp(esd_cfg.playername, info->name))
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
86 break;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
87
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
88 if (info) {
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
89 player = info->source_id;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
90 if (l && r) {
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
91 /*
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
92 * Sometimes we call with NULL
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
93 * args to fetch the player num
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
94 */
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
95 *l = (info->left_vol_scale * 100) / 256;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
96 *r = (info->right_vol_scale * 100) / 256;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
97 }
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
98 }
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
99 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
100 g_warning("xmms: Couldn't find our player "
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
101 "(was looking for %s) at the server", esd_cfg.playername);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
102
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
103 if (all_info)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
104 esd_free_all_info(all_info);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
105 esd_close(fd);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
106 }
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
107
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
108 void
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
109 esdout_get_volume(int *l, int *r)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
110 {
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
111 if (OSS_AVAILABLE && esd_cfg.use_oss_mixer && !esd_cfg.use_remote) {
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
112 esdout_get_oss_volume(l, r);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
113 lp = *l;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
114 rp = *r;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
115 }
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
116 else {
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
117 /*
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
118 * We assume that the volume hasn't changed from the
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
119 * 'persistant' value. Constantly polling takes too
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
120 * much time/resources. Commenting this section out
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
121 * will consistently check the ESD server to see if
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
122 * someone else changed our stream volume.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
123 */
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
124 *l = lp;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
125 *r = rp;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
126 /* esdout_fetch_volume(l, r); */
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
127 }
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
128 }
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
129
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
130 void
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
131 esdout_set_volume(int l, int r)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
132 {
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
133 lp = l;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
134 rp = r;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
135
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
136 if (OSS_AVAILABLE && esd_cfg.use_oss_mixer && !esd_cfg.use_remote) {
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
137 esdout_set_oss_volume(l, r);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
138 }
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
139 else if (player != -1 && esd_cfg.playername != NULL) {
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
140 int fd = esd_open_sound(esd_cfg.hostname);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
141 if (fd >= 0) {
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
142 esd_set_stream_pan(fd, player, (l * 256) / 100, (r * 256) / 100);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
143 esd_close(fd);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
144 }
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
145 }
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
146 }
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
147
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
148 #ifdef HAVE_OSS
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
149
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
150 static void
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
151 esdout_get_oss_volume(int *l, int *r)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
152 {
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
153 int fd, v, devs;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
154 long cmd;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
155
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
156 if (esd_cfg.use_remote)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
157 return;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
158
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
159 fd = open(DEV_MIXER, O_RDONLY);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
160 if (fd != -1) {
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
161 ioctl(fd, SOUND_MIXER_READ_DEVMASK, &devs);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
162 if (devs & SOUND_MASK_PCM)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
163 cmd = SOUND_MIXER_READ_PCM;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
164 else if (devs & SOUND_MASK_VOLUME)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
165 cmd = SOUND_MIXER_READ_VOLUME;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
166 else {
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
167 close(fd);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
168 return;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
169 }
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
170 ioctl(fd, cmd, &v);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
171 *r = (v & 0xFF00) >> 8;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
172 *l = (v & 0x00FF);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
173 close(fd);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
174 }
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
175 }
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
176
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
177 static void
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
178 esdout_set_oss_volume(int l, int r)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
179 {
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
180 int fd, v, devs;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
181 long cmd;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
182
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
183 if (esd_cfg.use_remote)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
184 return;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
185
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
186 fd = open(DEV_MIXER, O_RDONLY);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
187
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
188 if (fd != -1) {
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
189 ioctl(fd, SOUND_MIXER_READ_DEVMASK, &devs);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
190 if (devs & SOUND_MASK_PCM)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
191 cmd = SOUND_MIXER_WRITE_PCM;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
192 else if (devs & SOUND_MASK_VOLUME)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
193 cmd = SOUND_MIXER_WRITE_VOLUME;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
194 else {
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
195 close(fd);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
196 return;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
197 }
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
198 v = (r << 8) | l;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
199 ioctl(fd, cmd, &v);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
200 close(fd);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
201 }
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
202 }
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
203
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
204 #else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
205
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
206 static void
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
207 esdout_get_oss_volume(int *l, int *r)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
208 {
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
209 }
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
210
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
211 static void
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
212 esdout_set_oss_volume(int l, int r)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
213 {
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
214 }
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
215
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
216 #endif