Ess Sound Library: Click on repeated play of .wav file
in
Contributed Library Questions
•
1 year ago
Hello,
i am writing a sequencer. I tried different Sound Libraries so far and i like Ess the most.
But still there is a problem.
I can play the sounds without any problem for exactly one time.
Whenever i try to play an AudioChannel again there is a click noise in the sound.
I tried to explicty stop() the AudioChannel before playing it again, and also stop it on the Done Event.
I also tried the snapOutToZero and snapInToZero options without any success.
Is there anything i am missing?!
Thanks for your help.
Jewe
Edit for Codesnippet:
init in class:
- player = new AudioChannel(tr);
call:
- if( lastBeat != beatCount ){
- if(bass[beatCount].active){
- bass[beatCount].player.stop();
- bass[beatCount].player.play();
- }
- if(snare[beatCount].active){
- snare[beatCount].player.stop();
- snare[beatCount].player.play();
- }
- lastBeat = beatCount;
- }
1