MegaZine3 Version 1 ("The Old One") > General Discussion

Version 1: Sound loops and loop="false" doesn't help

(1/1)

PolrBear:
I'm using the earlier GPL version of Megazine3 as I like the absence of restrictions and it seems quite a bit more intuitive to set up.  My only problem is with the snd element; I don't seem to be able to get it to stop looping.  Here's what the docs have to say:


--- Quote --- Sounds are played in an infinite loop, and coninue playing even if the
containing page is not visible.
--- End quote ---

But then there's an attribute described which would seem to override this behavior:

--- Quote ---loop {false, true} true
Determines whether the sound runs in an infinite loop or is played only once. If it should not
loop, but start again when the page becomes visible a second ime, addiionally use the
restart atribute.
--- End quote ---

Here's the code in megazine.xml for the page in question:

--- Code: ---<page>
<img src="src/pg1.jpg" aa="true" width="480" height="621"/>
<snd src="audio/snd1.mp3" loop="false" restart="true" fade="0" onlywhenactive="true"/>
</page>
--- End code ---
The sound plays and all the other attributes work - but the loop="false" has no effect.  The sound loops endlessly.

Any thoughts, anyone?

Florian Nücke:
Sorry, no idea, looks proper to me, even after having a look at the code again.

Aside from that: what is it that you find more complicate about the newer version? Would really helpful feedback, because then I could see if I could do something against it :) Thanks.

PolrBear:

--- Quote from: Florian Nücke on December 21, 2011, 01:38:48 pm ---Sorry, no idea, looks proper to me, even after having a look at the code again.

--- End quote ---
Thanks for looking it over - I appreciate that.  Speaking of code, I don't seem to be able to find the download for the source code of v1?  Where is that available?  I might like to take a crack at fixing this myself.


--- Quote ---Aside from that: what is it that you find more complicate about the newer version? Would really helpful feedback, because then I could see if I could do something against it :) Thanks.

--- End quote ---
No really sophisticated reason.  I just downloaded the new version first and I was presented with a couple of Windows shell scripts, the purpose of which was dimly clear to me.  I could have benefitted from a tutorial on the "do this, do this, do this" level.  When I got version 1, it was much simpler - just an xml file to modify and an API document to tell me what attributes are available.  Having modified it by hand, I'm now pretty sure I could go back and use the new version with no trouble - indeed I may end up doing that if I can't get sound fixed on this one.

Navigation

[0] Message Index

Go to full version