playing multiple audio files simultaneously

Peter Bogdanoff bogdanoff at me.com
Wed Mar 29 16:13:18 EDT 2017


Using “wait” is generally not advisable…

I just have a list of all players and then give them all a pause command or set their filenames to empty before playing the new audio.

I saw some instability in LC 9 (crashing), so I’m sticking with 8 until those issues are worked out.

pb

On Mar 29, 2017, at 11:50 AM, Ray via use-livecode <use-livecode at lists.runrev.com> wrote:

> Thanks Peter - I'll look into 9.0 and see how it works.  I can't imagine an improvement in 8.x is not retained in 9.x.
> 
> To your point, I'm assuming you can't use:
> 
>      wait until sound() = "done" with messages
> 
> in order to avoid playing sounds simultaneously.  Right?
> 
> On 3/29/2017 2:34 PM, Peter Bogdanoff via use-livecode wrote:
>> What I’m doing now is…
>> I’m using the Livecode 8.1 series
>> Converting my QT files to wmv and putting those in the same directory as the QT files
>> Using the platform property to detect the user’s OS
>> Setting the file suffix to .mov or .wmv depending on that result
>> 
>> It works well. My issue is wanting to not have the various players play simultaneously—I have to stop the others when another plays!
>> 
>> The LC 8 player control on Mac uses AV Foundation, not QT, but does play QT files. On Windows, LC 8 uses DirectShow to play audio and video.
>> 
>> https://livecode.com/removing-quicktime-dependency-from-livecodes-player-object/
>> 
>> Peter
>> 
>> On Mar 29, 2017, at 11:07 AM, Ray via use-livecode <use-livecode at lists.runrev.com> wrote:
>> 
>>> Yes - 7.7.9.  I re-installed Quicktime and got it working, playing sounds simultaneously, but I'm still somewhat apprehensive since Quicktime has been discontinued for so long now.
>>> 
>>> Do you know of anything else Peter or are we pretty much resigned to Quicktime on the desktop for simultaneous sounds?
>>> 
>>> On 3/29/2017 2:02 PM, Peter Bogdanoff via use-livecode wrote:
>>>> You do have QuickTime installed on your Windows machine? …if you are trying to play a QT file.
>>>> 
>>>> Peter
>>>>  On Mar 29, 2017, at 10:40 AM, Ray via use-livecode <use-livecode at lists.runrev.com> wrote:
>>>> 
>>>>> I've lo0oked into playing multiple audio files simultaneously, for Windows and Mac desktops, and come up with nothing but issues. Using a player object on my Windows 8.1 system, LC 7.1.1, I get an error of "could not open that video".  Even if it worked I understand there are latency issues as well as Apple discontinuing Quicktime.
>>>>> 
>>>>> I've tried SOX but for some reason can't get it to simply play an audio file (via a shell command).  If anybody knows the right syntax for this that would be great.
>>>>> 
>>>>> Otherwise, does anyone know of any alternatives compatible with Livecode?  I hope I'm missing something here and that Livecode itself can do this.  It seems odd that with all the advances Livecode has made we're still struggling aith an age old issue of how to play sounds.
>>>>> 
>>>>> Thanks!
>>>>> 
>>>>> _______________________________________________
>>>>> 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
>>>> _______________________________________________
>>>> 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
>>> 
>>> _______________________________________________
>>> 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
>> 
>> _______________________________________________
>> 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
> 
> 
> _______________________________________________
> 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