Author Topic: Version 1: Sound loops and loop="false" doesn't help  (Read 287 times)

PolrBear

  • Newbie
  • *
  • Posts: 3
Version 1: Sound loops and loop="false" doesn't help
« on: December 20, 2011, 04:33:06 am »
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.

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.

Here's the code in megazine.xml for the page in question:
Code: [Select]
<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>
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

  • κρύα πόδια
  • Administrator
  • Hero Member
  • *****
  • Posts: 1989
  • MegaZine3 Developer
    • MegaZine3
Re: Version 1: Sound loops and loop="false" doesn't help
« Reply #1 on: December 21, 2011, 01:38:48 pm »
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.
For the Snark was a Boojum, you see.

Before you ask a question
          After you get an answer
  • please document your problem with the answer in the Project Wiki. (e.g. in the FAQs)
  • help others out if you can, by answering their questions on the forum.

PolrBear

  • Newbie
  • *
  • Posts: 3
Re: Version 1: Sound loops and loop="false" doesn't help
« Reply #2 on: December 22, 2011, 09:03:15 pm »
Sorry, no idea, looks proper to me, even after having a look at the code again.
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.
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.