Stopping audio codec at the and of each voice prompt
This commit is contained in:
parent
0298aa897b
commit
80f6fe2289
|
|
@ -295,10 +295,7 @@ void vp_terminate()
|
||||||
if (voicePromptActive)
|
if (voicePromptActive)
|
||||||
{
|
{
|
||||||
audio_disableAmp();
|
audio_disableAmp();
|
||||||
codec_stop();
|
vp_flush();
|
||||||
|
|
||||||
vpCurrentSequence.pos = 0;
|
|
||||||
voicePromptActive = false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
codec_terminate();
|
codec_terminate();
|
||||||
|
|
@ -314,6 +311,8 @@ void vp_stop()
|
||||||
vpCurrentSequence.pos = 0;
|
vpCurrentSequence.pos = 0;
|
||||||
vpCurrentSequence.c2DataIndex = 0;
|
vpCurrentSequence.c2DataIndex = 0;
|
||||||
vpCurrentSequence.c2DataLength = 0;
|
vpCurrentSequence.c2DataLength = 0;
|
||||||
|
codec_stop();
|
||||||
|
|
||||||
// If any beep is playing, immediately stop it.
|
// If any beep is playing, immediately stop it.
|
||||||
if (currentBeepDuration > 0)
|
if (currentBeepDuration > 0)
|
||||||
platform_beepStop();
|
platform_beepStop();
|
||||||
|
|
@ -519,6 +518,7 @@ void vp_tick()
|
||||||
vpCurrentSequence.pos = 0;
|
vpCurrentSequence.pos = 0;
|
||||||
vpCurrentSequence.c2DataIndex = 0;
|
vpCurrentSequence.c2DataIndex = 0;
|
||||||
vpCurrentSequence.c2DataLength = 0;
|
vpCurrentSequence.c2DataLength = 0;
|
||||||
|
codec_stop();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue