![how to loop a sound how to loop a sound](https://static.wixstatic.com/media/747d60_7b810e9c72324e15aec12662c892a8e9~mv2.png)
Println("B:" + B) // PROBLEM IS HERE IT GETS EXECUTE MORE THAN ONCE
![how to loop a sound how to loop a sound](https://raw.githubusercontent.com/dariocavada/godotengine/master/img/sound-wihtout-loop.png)
Println("G:" + G) // PROBLEM IS HERE IT GETS EXECUTE MORE THAN ONCE Problem is in line number 80-99 with R,G,B random value generation :( import Blobscanner.* Actually there is no problem with the random color generation. Lastcol : I have done as you said but still there is problem. G = (int)random(5, 10) // PROBLEM IS HERE IT GETS EXECUTE MORE THAN ONCEī = (int)random(10, 16) // PROBLEM IS HERE IT GETS EXECUTE MORE THAN ONCE R = (int)random(0, 5) // PROBLEM IS HERE IT GETS EXECUTE MORE THAN ONCE The real problem is here mentioned in code with comments: //. GoToLoop: Thanks :D I am still learning syntax :D And sorry if I was not clear about my question so there is no problem with random color generator which both of you have mentioned. Image(colimg, 0, & : Yes Chrisir, I did put them inside the curly brackets.Ībout the random Number generation code: I was asking about the code line 80 -95 where R, G, B, are those numbers which gets generated randomly and sometimes these number execute more than once which should not happen. If (!player.isPlaying()) player.rewind()
![how to loop a sound how to loop a sound](https://helpx.adobe.com/content/dam/help/en/animate/using/using-sounds/jcr_content/main-pars/procedure/proc_par/step/step_par/image/audio_split.png)
Int blobcol = colimg.pixels // getting blob color from testLayer Minim = new Minim(this) // initialaizing minim objectįinal Set> mapValues = blobValues.entrySet() įinal Entry test = new Entry TestLayer = createGraphics(width, height) īs = new Detector(this, 0, 0, 400, 400, 255) LinkedHashMap blobValues = new LinkedHashMap() I know there is method called rewind and I used it but the problem is I have tried placing player.rewind() every possible place in the code but it is not looping the audio.Ĭlick on Download for application import Blobscanner.* ĪudioPlayer player = new AudioPlayer
#HOW TO LOOP A SOUND HOW TO#
Can anyone suggest me how to do looping of the sound.