Scolring - Forum

Entraides et échanges autour de la technologie Scol - Informations and exchanges on the Scol technology

Vous pouvez changer la langue de l'interface une fois inscrit - You can change the language once registered

You are not logged in.

#1 16-Oct-2012 03:49:02

dhika11march
Member
From: Indonesia
Registered: 30-Mar-2012
Posts: 227

sound can't play or error while playing

hello!
I put the sound plugIT on my .xos, but I have a problem, that is the while I played my project, my sound can't play,
it must be played when the marker detected, but in fact it doesn't work.
Then I replace the sound with else, and it work.
The question is, why sometime sound plugIT can play the sound and sometime it can't?
also the sound can play but there's an error while playing.
Why?
thanks!

Offline

#2 16-Oct-2012 08:04:34

iri
Admin. / Scol language & Scol apps developer
From: France
Registered: 22-Feb-2009
Posts: 2,024
Website

Re: sound can't play or error while playing

What is its format ?

Offline

#3 16-Oct-2012 09:15:10

dhika11march
Member
From: Indonesia
Registered: 30-Mar-2012
Posts: 227

Re: sound can't play or error while playing

.mp3, then I convert my files into .wav format, but it doesn't work!.
By the way, 2 months ago I recording my voice and I save into .mp3 files, but the files error while playing.
I can give the ilustrated like this:

For example the sound of my sound.mp3 is "Earth is one of planet that possible for human to live."
But when I played the editor, and when the marker detected, the sound is just "Earth is.." (repeated continously until I presses stop)
I mean that it not complete while playing = error!

Offline

#4 16-Oct-2012 09:22:49

iri
Admin. / Scol language & Scol apps developer
From: France
Registered: 22-Feb-2009
Posts: 2,024
Website

Re: sound can't play or error while playing

If the sound repeats continuouly then i should check the project's links about this sound and this marker ?
(how you call the sound // marker ?, when ? etc)

Offline

#5 16-Oct-2012 09:41:53

arkeon
Admin. / Scol language & OpenSpace3D developer
From: Nantes
Registered: 30-Mar-2009
Posts: 5,161
Website

Re: sound can't play or error while playing

Hi

If the marker is lost /found again then your sound play again.
Look if you did not check the loop in the sound plugIt

if you hit the play button in the sound plugIT is your sound play to the end ?

Offline

#6 17-Oct-2012 00:33:23

dhika11march
Member
From: Indonesia
Registered: 30-Mar-2012
Posts: 227

Re: sound can't play or error while playing

this is the link that you can try,
http://www.4shared.com/rar/PiB1oCqF/sound.html

i have been run this program, and there's error while playing..

Offline

#7 17-Oct-2012 01:11:53

dhika11march
Member
From: Indonesia
Registered: 30-Mar-2012
Posts: 227

Re: sound can't play or error while playing

well, I found error (again) when the marker detected again, the sound play from beginning but error

Offline

#8 17-Oct-2012 17:17:07

arkeon
Admin. / Scol language & OpenSpace3D developer
From: Nantes
Registered: 30-Mar-2009
Posts: 5,161
Website

Re: sound can't play or error while playing

In fact the sound plugIT play a new sound instance each time you call the play action.
To avoid the sound repetition on marker lost / found use a switch plugIT like that :

marker.found -> switch.input
switch.left -> sound.play
switch.left -> switch.switch right
sound.stopped -> switch.switch left

then you sound will play once and re enable the play action only if the sound already play to the end.

Offline

Board footer

Powered by FluxBB