我现在想把4段wav声音文件连起来播放怎么办啊,谁知道,在线等,最好是有这样函数

解决方案 »

  1.   

    if mediaplayer.postion=mdiaplayer.length then
      begin
        meicpalyer1.filename:=next;
        mediaplayer1.open;
        next:=//next filename;end;
      

  2.   

    老大把4段Wave做成一个不就行了?
      

  3.   

    是这样的:
    先播放一段语音,然后是一段2位数的号码,是用0-9的语音数字组合起来的,最后还有一段语音,如果每条都做的话要做100个啊,虽然现在只用30个,但是以后还是一件麻烦的事情,用playsound不能连着播放
      

  4.   

    可以用timer 控件去检测声音是否停止播放,然后执行相应的操作就可以了
      

  5.   

    先把  要播放的文件放入  listbox 中
      btn click   
        if listbox.items.count > -1 then
        begin
          meicpalyer1.filename:=listbox.string[0];
          mediaplayer1.open;
        end;MediaPlayer1Notify 事件中
      if listbox.ItemIndex < listbox.Items.Count-1 then
      begin
        listbox.ItemIndex := listbox.ItemIndex +1;
        MediaPlayer.FileName := listbox.Items[listbox.ItemIndex];
        Label3.caption := '正在播放';
        Label3.update;
        try
          MediaPlayer.Open;
          MediaPlayer.Play;
        except
          MediaPlayerNotify(Nil);
        end;
      end
      else
      begin
        Label3.caption := '播放完成';
      end;