clear tone_count on subsequent calls

git-svn-id: http://svn.openzap.org/svn/openzap/trunk@848 a93c3328-9c30-0410-af19-c9cd2b2d52af
This commit is contained in:
Anthony Minessale 2009-11-02 18:58:55 +00:00
parent 60b912399e
commit c5966d058b
1 changed files with 6 additions and 0 deletions

View File

@ -1752,7 +1752,13 @@ ZIO_CODEC_FUNCTION(zio_alaw2ulaw)
OZ_DECLARE(void) zap_channel_clear_detected_tones(zap_channel_t *zchan)
{
uint32_t i;
memset(zchan->detected_tones, 0, sizeof(zchan->detected_tones[0]) * ZAP_TONEMAP_INVALID);
for (i = 1; i < ZAP_TONEMAP_INVALID; i++) {
zchan->span->tone_finder[i].tone_count = 0;
}
}
OZ_DECLARE(void) zap_channel_clear_needed_tones(zap_channel_t *zchan)