JACKSONVILLE, Fla. — The Florida man charged with fatally shooting a 17-year-old boy after an argument over loud music testified Tuesday that he thought he saw the barrel of a gun from the teen’s SUV and that he feared for his life before firing his weapon.

Michael Dunn said he tried to calm down the confrontation with three teens in a neighboring SUV outside a Jacksonville convenience store in November 2012.

“I couldn’t believe what I was seeing and hearing,” the 47-year-old said.

Dunn is charged with first-degree murder. He has pleaded not guilty and says he acted in self-defense when he fatally shot 17-year-old Jordan Davis of Marietta, Ga., in 2012.

The defense rested its case Tuesday, and then prosecutors called Dunn’s fiancée back to the witness stand. Rhonda Rouer contradicted Dunn’s assertion that he had told her he had seen a gun in the teens’ SUV. Closing arguments were expected Wednesday.

NO CALL, NO WEAPON FOUND

Prosecutors also played a video of Dunn’s jailhouse interview in which he couldn’t explain why he didn’t call police after the shooting. Also in it, detectives picked apart Dunn’s story that he was threatened with a gun, saying no weapon was found on the teen and witnesses never described Davis making threats.

Dunn said he would not have done anything to get himself in trouble.

“I got a place on the beach. I got a great house. I got a great girl. We just got a new puppy,” Dunn said. “There is no reason for me to jeopardize that.”

In his testimony, Dunn said he and Rouer went to the convenience store for wine and chips. He said he pulled into a spot next to an SUV where music with a “thumping” bass was playing.

‘MY EARDRUMS WERE VIBRATING’

“It got really loud,” Dunn said. “My rear view mirror was shaking. My eardrums were vibrating. It was ridiculously loud.”

Dunn said he asked the three young men in the SUV to turn down the music and they turned it off. “I said, ‘Thank you,’ ” Dunn said. But soon afterward, Dunn said he heard someone in the SUV shouting expletives and the word “cracker” at him. Dunn is white, and the teens in the SUV were black. Cracker is a derogatory term for white people.

The music was turned back on, and Dunn testified, “I wasn’t going to ask for favors anymore.”

Dunn said the men in the SUV had “menacing expressions.” He said he saw a teen in the backseat reach down for something which he slammed into the car door. Dunn said it looked as if the barrel of a shotgun was sticking out the window.

One of the teens stepped out of the SUV, Dunn said, and he felt “this was a clear and present danger.” He reached for his pistol in a glove box.

Dunn, who had a concealed weapons permit, fired nine shots into the car, according to an affidavit.