struggling with player

William Prothero prothero at earthednet.org
Sun Apr 26 18:04:51 EDT 2015


Klaus:
Yeah, just as I posted this, I noticed in the user guide that it was the playLoudness. I used that and it did change the loudness. However, I’m still having trouble getting the players to play continuously when I drag the loudness scroller. I have 3 players going simultaneously and I’m changing the loudness on 2 of them. There seems to be some kind of timing problem because if I change the loudness too quickly, one of the players stops.

It also seems pretty cumbersome that there isn’t a “play from start” command. I will fiddle with the startTime,endTime, and playSelection to try to get it to rewind to the start. But it seems line basic commands are quirky to implement. 

So, to get the player to begin at the start, when it’s somewhere else, I’d have to do something like:

stop player myPlayer
put the duration of player myPlayer into endTime
set the startTime of player myPlayer to 1
set the endTime of player myPlayer to endTime
set the playSelection of player 1 to true
start player myPlayer

Do I have to stop, then start the player to get it to jump to a particular location?
And, is there a way to keep the other player going, without being affected by commands and the stack losing focus?

Thanks, Klaus, for your input.
Best,
Bill



> On Apr 26, 2015, at 2:50 PM, Klaus major-k <klaus at major-k.de> wrote:
> 
> Hi Bill,
> 
>> Am 26.04.2015 um 23:38 schrieb William Prothero <prothero at earthednet.org>:
>> 
>> Folks:
>> I’m trying to make an audio player that has a background sound, then various sounds playing at specific times, with the background sound continuing. Playing both sounds at the same time works well. However, I can’t get the loudness to change and can’t get the loudness to change seamlessly when the controller from mobGUI is activated.
>> 
>> Details: Livecode 7.0.4
>> 1. The "set the loudness of player “xyaz” to someIntegerValue" doesn’t seem to work. I'm running the player in loop mode. I would like the loudness to change without stopping the sound, when the user adjusts a scroller that I have. The controller changes the loudness, but not setting the property. I tried with and without a controller, and when the movie is stopped.
>> 
>> 2. I’m using a revMOBGui scroller to adjust the volume of audio in the player object,  I’d like the have the player keep running when the volume is changed. However, when I change the volume, play stops. However, if I set the volume from the message box, nothing happens. AND, when I try to set or get the loudness value (from the message box) when I use the controller, nothing changes.
>> 
>> 3, I would like the audio to continue when the app is not in focus. How do I do this?
>> 
>> What am I missing? Any suggestions would be appreciated.
> 
> 1. is that a typo? It should read: 
> ...
> set the playloudness of player xyz to someintegervalue
>> 
>> Bill
>> 
>> William A. Prothero
>> http://es.earthednet.org/
> 
> Best
> 
> Klaus
> 
> --
> Klaus Major
> http://www.major-k.de
> klaus at major-k.de
> 
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the use-livecode mailing list