Sound problem

Hi. I’m trying to create a level in my fps. In it you must collect 12 C4. Im trying to make that every 4 bombs the music changes to more intensive. Im having a problem. It plays the sound kinda like “stacked” when i collect 1 C4. But when i collect the second one it plays it normally. But it doesnt change the music. Can anyone help me? Heres the code:

using UnityEngine;
using System.Collections;

public class BombCollect : MonoBehaviour 
{
	
public GameObject Bomb;

public AudioClip BombGrab;
public AudioClip Bomb1;
public AudioClip Bomb2;
public AudioClip Bomb3;
public int BombsWin = 0;
	

 void Update () 
	{
        

        RaycastHit hit;

        var fwd = transform.TransformDirection (Vector3.forward);


		 if (Input.GetKey(KeyCode.E)) {

            if (Physics.Raycast(transform.position, fwd, out hit, 3)) {

               if (hit.collider.tag == "Respawn") {

					audio.Clip = BombGrab;
					bombWin +=1;
					audio.Play ();

                    Destroy(hit.transform.gameObject);


                }

                else Debug.Log ("Not a bomb.");

            }

            else Debug.Log ("Nothing found.");
			}
		if(bombWin == 12){
		Debug.Log ("U WON");
		}
	if(bombWin == 1)
		{
		  audio.clip = Bomb1;
          audio.Play();
        }
		if(bombWin == 3){
		{
		  audio.clip = bomb3;
		  audio.Play();
}
		}
		if(bombWin == 6)
		{
		  audio.clip = bomb3;
		  audio.Play ();
		}
    }
}

You should try :

if (bombWin == 12) {
    Debug.Log ("U WON");
}
else if (bombWin >= 6) {
    audio.clip = bomb3;
    audio.Play ();
}
else if (bombWin >= 3) {
     audio.clip = bomb2;
     audio.Play();
}
else if {bombWin >= 1) {
     audio.clip = Bomb1;
     audio.Play();
}

The reason for this “doubling up” on sound is that when conditions are met and the sound plays, those conditions have still been met the next frame which causes the sound to play again. If you game was running at 30FPS that means the sound is been played 30 times every second.

You could use boolean flags to determine if a sound has been played before. If not, play when the right amount of bombs are active.