How do I get access to Quality Contro Centre?bn wrote:Hi Jellicle,Sorry, I finally got it. Well, I think that is something for a bug report. I don't know if you have access to the Quality Control Center. If yes that would be the place, if no just report to support at runrev.comI do not want the sound to stop playing when the hardware sleep button is pressed. I want it to keep playing. You seem to think I want something different
Sound playback driving me crazy...
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Re: Sound playback driving me crazy...
14" MacBook Pro
Former LiveCode developer.
Now recovering.
Former LiveCode developer.
Now recovering.
Re: Sound playback driving me crazy...
Hi Jellicle,
if you have access to the developer list you should have access to the Quality Control Center. The Livecode Developer Program is a paid option.
Else you just report to support.
Kind regards
Bernd
if you have access to the developer list you should have access to the Quality Control Center. The Livecode Developer Program is a paid option.
Else you just report to support.
Kind regards
Bernd
Re: Sound playback driving me crazy...
Is the developer list useful? Much traffic?
14" MacBook Pro
Former LiveCode developer.
Now recovering.
Former LiveCode developer.
Now recovering.
Re: Sound playback driving me crazy...
Hi Jellicle,
description of the Livecode Developer Program from Runrev ($199/year)
The response of Runrev is very fast, the option to report quirks/bugs or to suggest features as well as to test prereleases is very valuable if you are serious with mobile development.
It is about 20 messages a day. You can opt for a digest mode that gives you the the last messages once or twice a day or get the messages directly by email.
Kind regards
Bernd
description of the Livecode Developer Program from Runrev ($199/year)
Since it is a paid addition the developer list is very useful, especially if you develop for mobile since that is where the features and improvements are most prominent at present.Get LiveCode pre-releases, support and direct interaction with our development team. Includes membership of the LiveCode Developer mailing list, access to the Quality Control Center and 6 Quick Support incidents per year. Annual subscription.
The response of Runrev is very fast, the option to report quirks/bugs or to suggest features as well as to test prereleases is very valuable if you are serious with mobile development.
It is about 20 messages a day. You can opt for a digest mode that gives you the the last messages once or twice a day or get the messages directly by email.
Kind regards
Bernd
Re: Sound playback driving me crazy...
I've signed up but confirmation of my membership of the actual list seems to be delayed. Runrev can be very slow with sales related stuff, in my experience.
14" MacBook Pro
Former LiveCode developer.
Now recovering.
Former LiveCode developer.
Now recovering.
Re: Sound playback driving me crazy...
Based on some advice from someone on the dev list I've started using the MPMoviePlayerController iOS control instead of the other methods. It keeps playing even when the display is put to sleep. As a bonus the user can scroll through the mp3 and manually stop and restart play. This replaces most of my sound play code, and is a much better solution.Awesome!
14" MacBook Pro
Former LiveCode developer.
Now recovering.
Former LiveCode developer.
Now recovering.
Re: Sound playback driving me crazy...
Hi Jellicle,
Kind regards
Bernd
Thanks for sharing that, good to know. I did not try that for your "continue to play when put to sleep" problem, but using the MPMoviePlayerController iOS control gives you the additional bonus that you can query the currentTime of the sound and base some action on it.Based on some advice from someone on the dev list I've started using the MPMoviePlayerController iOS control instead of the other methods. It keeps playing even when the display is put to sleep.
Kind regards
Bernd
-
- Posts: 95
- Joined: Wed Mar 30, 2011 10:15 am
Re: Sound playback driving me crazy...
I'm trying to set my stop/restart code in a handler, so all my Narration fields are set to the same mouseUp code:
The problem is, LC tells me I need to put a comma near the "openCard" in this line:
Any ideas how to fix/work around this?
Edit: Never mind. I put it in parentheses. That seems to have fixed it.
Code: Select all
on shapeNarrationField
set the width of fld "Narration" to 1024
set the height of fld "Narration" to 188
set the rectangle of fld "Narration" to 0, 580, 1024, 768
set the visible of fld "Narration" to true
set the textSize of fld "Narration" to 45
set the textAlign of fld "Narration" to center
set the textHeight of fld "Narration" to 110
set the textColor of fld "Narration" to "blue"
set the borderWidth of fld "Narration" to 0
set the script of fld "Narration" to \
"on mouseUp" & cr & \
"if the environment is "mobile" then" & cr & \
"if iPhoneSoundChannelStatus(Transient) is playing then" & cr & \
"stopChannel(Transient)" & cr & \
"else send "openCard" to me in 1 millisecond" & cr & \
"" & cr & \
"else" & cr & \
" if the sound is "done" then" & cr & \
" openCard" & cr & \
"else stopChannel(Transient)" & cr & \
"end if" & cr & \
"end mouseUp"
end shapeNarrationField
Code: Select all
"else send "openCard" to me in 1 millisecond" & cr & \
Edit: Never mind. I put it in parentheses. That seems to have fixed it.
Re: Sound playback driving me crazy...
Hi Britt,
when creating scripts via scripts you can also use the semicolon ; instead of CR, which will make it a bit more readable.
This is valid sytax:
on mouseup;beep;end mouseup

Another problem in your script is QUOTES insides of QUOTES:
...
"if the environment is "mobile" then"...
...
That will also not work!
To avoid having to write:
... & QUOTE & "mobile & QUOTE ...
I usually have function q in my mainstacks script:
Will save LOT of typing:
.. & q("mobile")...
You get the picture
Best
Klaus
when creating scripts via scripts you can also use the semicolon ; instead of CR, which will make it a bit more readable.
This is valid sytax:
on mouseup;beep;end mouseup

Another problem in your script is QUOTES insides of QUOTES:
...
"if the environment is "mobile" then"...
...
That will also not work!
To avoid having to write:
... & QUOTE & "mobile & QUOTE ...
I usually have function q in my mainstacks script:
Code: Select all
function q tString
return QUOTE & tString & QUOTE
end q
.. & q("mobile")...
You get the picture

Best
Klaus
-
- Posts: 95
- Joined: Wed Mar 30, 2011 10:15 am
Re: Sound playback driving me crazy...
I put "mobile" in parentheses, and that seems to work.
How would you call your function q?
How would you call your function q?
Re: Sound playback driving me crazy...
Hi Britt,
So don't rely on this!
...
put q("mobile")
...
Will give: "mobile"
Best
Klaus
It definitively shouldn't!Brittgriscom wrote:I put "mobile" in parentheses, and that seems to work.
So don't rely on this!
Just like the example in my last posting!Brittgriscom wrote:How would you call your function q?

...
put q("mobile")
...
Will give: "mobile"
Best
Klaus
-
- Posts: 95
- Joined: Wed Mar 30, 2011 10:15 am
Re: Sound playback driving me crazy...
Now I'm getting an error in my actual Narration Field script:
My function is "doubleQuote".
The error is "(if: missing 'then')"
Edit: I fixed it with this:
Code: Select all
if iPhoneSoundChannelStatus doubleQuote ("Transient") is playing then
The error is "(if: missing 'then')"
Edit: I fixed it with this:
Code: Select all
if iPhoneSoundChannelStatus(Transient) is playing then
Re: Sound playback driving me crazy...
As I said, don't rely on this, remember Murphys law!Brittgriscom wrote:Now I'm getting an error in my actual Narration Field script:My function is "doubleQuote".Code: Select all
if iPhoneSoundChannelStatus doubleQuote ("Transient") is playing then
The error is "(if: missing 'then')"
Edit: I fixed it with this:Code: Select all
if iPhoneSoundChannelStatus(Transient) is playing then

AND, what is most important, I found that the engine is getting less and less "forgiving"
over the years (I use MetaCard/Rev/Livecode since 1999), which is not a bad thing!
So it will HIT you, when you least exspect it

BTW, the correct syntax for your script is:
...
if iPhoneSoundChannelStatus(doubleQuote("Transient")) is playing then
...
since "iPhoneSoundChannelStatus" is a function, also if you supply another function as a parameter!
Best
Klaus
-
- Posts: 95
- Joined: Wed Mar 30, 2011 10:15 am
Re: Sound playback driving me crazy...
I cannot get the folder to work, unless I have previously installed the file and then deleted it. Installing the files individually works fine, though.bn wrote:Hi Britt,That is not my experience. I successfully copied a couple of files in a folder by just indicating the folder in "Copy Files"After days of struggle and suffering, I have realized that the Standalone Applications Settings > Copy Files only works properly if you copy the files individually. If you just copy the folder that contains the files, you're likely to have the same frustration I've been going through.
Kind regards
Bernd
Re: Sound playback driving me crazy...
Hi Britt,
there must be something wrong with your LiveCode, I can copy complete folders, too!
Best
Klaus
there must be something wrong with your LiveCode, I can copy complete folders, too!
Best
Klaus