iceboylsg at November 14th, 2009 02:15 — #1
guys, i 'm doing the artoolkit marker detection. i try to play the sound using openAL when the marker is detected. But i have a prob, the sound i put in the loop, it keep repeating the sound in very high speed. It means it have't finnish to play it , then it replay again. Did the openAL has the function to play the sound until it finish? and it won't restart even the play function is called.
reedbeta at November 14th, 2009 02:27 — #2
Like I explained in your last thread, you have to play the sound once then wait until it's finished. Don't try to play the sound multiple times or it will repeat as you described.
iceboylsg at November 14th, 2009 07:48 — #3
hmm...i know there is a method using sleep9) to generate the time for the sound to to play until finish. But it is not a good method. And i can't find any function in AL related to this..Hazz...
iceboylsg at November 16th, 2009 02:49 — #4
hey, if i don't want it to replay after the playsouce function,how should i write the code?..i stuck here=.=
iceboylsg at November 17th, 2009 02:02 — #5
reeta, how do i change the alsourceplay function? cos i don't wan it to replay after i call the alsourceplay function again. or do u have any idea how to do it?
manuel_marino at August 25th, 2010 16:39 — #6
You have to wait exactly the lenght of the sound.