Author: agrundman
Date: Tue Jul 20 13:34:17 2010
New Revision: 8974
URL: http://svn.slimdevices.com/jive?rev=8974&view=rev
Log:
Fix crossfade, it was causing an infinite loop. This was broken when I moved
the determine_transition_interval function elsewhere, when it had the
side-effect of updating a global variable needed for crossfade mode
Modified:
7.6/trunk/squeezeplay/src/squeezeplay/src/audio/decode/decode_output.c
Modified: 7.6/trunk/squeezeplay/src/squeezeplay/src/audio/decode/decode_output.c
URL:
http://svn.slimdevices.com/jive/7.6/trunk/squeezeplay/src/squeezeplay/src/audio/decode/decode_output.c?rev=8974&r1=8973&r2=8974&view=diff
==============================================================================
--- 7.6/trunk/squeezeplay/src/squeezeplay/src/audio/decode/decode_output.c
(original)
+++ 7.6/trunk/squeezeplay/src/squeezeplay/src/audio/decode/decode_output.c Tue
Jul 20 13:34:17 2010
@@ -303,6 +303,7 @@
/* Gain steps */
transition_gain_step = fixed_div(FIXED_ONE,
fixed_mul(interval, s32_to_fixed(TRANSITION_STEPS_PER_SECOND)));
transition_gain = 0;
+ transition_sample_step = sample_rate /
TRANSITION_STEPS_PER_SECOND;
transition_samples_in_step = 0;
crossfade_started = TRUE;
_______________________________________________
Jive-checkins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/jive-checkins