private void stop_audio(string audio_type)
{
if (audio_type == "all")
{
foreach (BeepSource bm in beepsource_list)
{
bm.audiosource.Stop();
bm.timer = 0;
}
initial_chatter.Stop();
response_chatter.Stop();
quindar1.Stop();
quindar2.Stop();
exchange_playing = false;
}
else if (audio_type == "beeps")
{
foreach (BeepSource bm in beepsource_list)
{
bm.audiosource.loop = false;
bm.audiosource.Stop();
bm.timer = 0;
}
}
}