1 Reply Latest reply on Oct 21, 2010 4:11 AM by NewFlo

    Starting audio playback simultaneous

    NewFlo

      Hi, there... I'm trying to help out a friend and write a software for

      a psychological experiment.

       

      For this experiment it is essential that

      i can start the playback of two different soundfiles simultaneous, one on the right ear and one on the left ear;

      I made to soundchannel objects with different soundtransform objects to pan the sounds left and right.

      My current problem is that there is a noteable delay between the start of the playback of

      sound1 and sound2. Is it possible to reduce or remove this delay?

       

      Would it be possible(and would it bring any difference) to extend the soundchannel to use two sound

      and two soundtransforms?

       

      Thanks for any help or comments on that.

        • 1. Re: Starting audio playback simultaneous
          NewFlo Level 1

          Also... anyone an idee how to messure the differenze appearing between the two playbacks?

           

          I was able to delay the playback appearing when using

          soundChannel1 = sound1.play();
          soundChannel2 = sound2.play();

           

          by adding the same statements in different, like that

          soundChannel1 = sound1.play();
          soundChannel2 = sound2.play();

          soundChannel1 = sound1.play();
          soundChannel2 = sound2.play();

           

          or stop and resume them

          soundChannel1 = sound1.play();
          soundChannel2 = sound2.play();

          soundChannel1.stop();

          soundChannel2.stop();

          soundChannel1 = sound1.play();
          soundChannel2 = sound2.play();

           

          It's also better if you do start the playbacks and then seek the first one back to 0, like that

          soundChannel1 = sound1.play();
          soundChannel2 = sound2.play();

          sound1.play(0);


          I don't think that's clean and there is still a delay left, but it would be greate to choose the one with the smallest

          delay. I will also try to extend the soundChannel like i said in the first post.

           

          all the best, florian