我怎样才能一个接一个地播放声音?

How can I play sound directly after an other?

我想在点击图片时播放声音。但是当我再次快速点击它时,它并没有再次播放,因为另一个没有播放完。我该如何调整?

我的代码:

var click;
click = new Audio("sound/ping.mp3")
click.volume = .75;

circle.on("click", handleMouseEventClick);

function handleMouseEventClick(evt){
    click.play();
    punten += 1;
    score.text = "Score: " + punten;
    stage.removeChild(this);
    stage.update();
}

谢谢!

试试这个:

function handleMouseEventClick(evt){
  if(!click.paused){
    click.pause();
    click.currentTime = 0;
    click.play();
  }
  else click.play();
}