comparison src/audacious/output.c @ 3977:81b4e186765f

Multiple changes. - Introduce a new variable that stores the volume. - Set volume on playback start.
author Jonathan Schleifer <js@webkeks.org>
date Mon, 19 Nov 2007 21:35:25 +0100
parents bce5ac1f368b
children bf5c5dea45dc
comparison
equal deleted inserted replaced
3976:608590ec4548 3977:81b4e186765f
254 gint 254 gint
255 output_open_audio(AFormat fmt, gint rate, gint nch) 255 output_open_audio(AFormat fmt, gint rate, gint nch)
256 { 256 {
257 gint ret; 257 gint ret;
258 OutputPlugin *op; 258 OutputPlugin *op;
259 int l, r;
259 260
260 #ifdef USE_SRC 261 #ifdef USE_SRC
261 ConfigDb *db; 262 ConfigDb *db;
262 gboolean src_enabled; 263 gboolean src_enabled;
263 gint src_rate, src_type; 264 gint src_rate, src_type;
321 { 322 {
322 op_state.fmt = fmt; 323 op_state.fmt = fmt;
323 op_state.rate = rate; 324 op_state.rate = rate;
324 op_state.nch = nch; 325 op_state.nch = nch;
325 } 326 }
327
328 input_get_volume(&l, &r);
329 op->set_volume(l, r);
326 330
327 return ret; 331 return ret;
328 } 332 }
329 333
330 void 334 void