Audio playing twice

PennController for IBEX Forums Support Audio playing twice

Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #6320
    carlap
    Participant

    Hi!

    I have a trial in my experiment (code below) and it shows an image and plays an audio. The problem is that the audio plays twice. Any thoughts on why and how to fix it?

    Thanks!

    newTrial( "nivel_1",
      newImage("M_S_nivel_1","Math_Spanish_Level_1.jpg")
                .size(850,450)
                .print()
       ,
        newAudio ("Level_Up", "chipquest.mp3")
        .play()
        ,
        newKey(" ")
        .wait()
        ,
        getImage("M_S_nivel_1")
        .remove()
    )
    #6322
    carlap
    Participant

    Nevermind, I fixed it!

     newAudio ("Level_Up", "chipquest.mp3")
        .play()
         .wait(2000)
        ,
        getAudio("Level_Up")
        .remove
        ,
        newKey(" ")
        .wait()
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.