Mercurial > audlegacy
comparison Plugins/Input/console/Track_Emu.cpp @ 499:626c86bda311 trunk
[svn] If a track has a length, then we *really* do not want silence detection,
as this fucks up tracks that have been improperly tagged.
author | nenolod |
---|---|
date | Wed, 25 Jan 2006 17:39:42 -0800 |
parents | a371216b5c8a |
children | 1cf60c54c22d |
comparison
equal
deleted
inserted
replaced
498:1618a9404868 | 499:626c86bda311 |
---|---|
158 for ( int n = 6; n--; ) | 158 for ( int n = 6; n--; ) |
159 fill_buf( detect_silence ); | 159 fill_buf( detect_silence ); |
160 } | 160 } |
161 out_time += out_count; | 161 out_time += out_count; |
162 | 162 |
163 if ( emu_time - silence_time > silence_max * stereo * emu->sample_rate() && silence_time ) | 163 if ( detect_silence && |
164 ( emu_time - silence_time > silence_max * stereo * emu->sample_rate() && silence_time ) ) | |
164 end_track(); | 165 end_track(); |
165 | 166 |
166 // fade if track is ending | 167 // fade if track is ending |
167 if ( out_time > fade_time ) | 168 if ( out_time > fade_time ) |
168 { | 169 { |