[xiph-commits] r7435 - icecast/trunk/ices0/src
brendan at motherfish-iii.xiph.org
brendan
Thu Aug 5 19:05:28 PDT 2004
Author: brendan
Date: Thu Aug 5 19:05:28 2004
New Revision: 7435
Modified:
icecast/trunk/ices0/src/crossfade.c
Log:
Recalibrate crossfade duration if sample rate is not 44100.
Modified: icecast/trunk/ices0/src/crossfade.c
===================================================================
--- icecast/trunk/ices0/src/crossfade.c 2004-07-31 18:00:05 UTC (rev 7434)
+++ icecast/trunk/ices0/src/crossfade.c 2004-07-31 18:36:40 UTC (rev 7435)
@@ -97,6 +97,11 @@
}
NewTrack = FadeSamples;
+ if (source->samplerate != 44100) {
+ NewTrack *= source->samplerate/44100.0;
+ if (NewTrack > FadeSamples)
+ NewTrack = FadeSamples;
+ }
}
static int cf_process(int ilen, int16_t* il, int16_t* ir)
More information about the commits
mailing list