Still stuck on playing a sound with a player
livfoss at mac.com
Tue Dec 17 04:52:17 EST 2013
Hi Jacque - thanks for your continued efforts to help.
When I do the 'play', I get "no data in AudioClip". This is after I rewrote the code to use a separate invisible stack for the players, as you suggested. The player itself definitely exists.
The script of the card I want to be showing while the sound plays just says:
set the playrate of player "playPoem" of cd 1 of stack "sounds" to 1
play "playPoem" of cd 1 of stack "Sounds" -- this just carries on until the player gets a 'playstopped' message
put the result
The player "playPoem" is newly attached to an MP3 file, which I have now moved to be next to the LC app in the 'Applications' folder, just for a change. Actually I get the same result even if I set the filename of each player at runtime.
I get the feeling I am disobeying some secret rules. Jacque, when you use a separate stack for sounds, how do you initiate the sounds?
TIA and sorry to take up your time.
On 17 Dec 2013, at 07:05, J. Landman Gay wrote:
> On 12/16/13 4:50 PM, Graham Samuel wrote:
>> Just picking up one point in your mail, I **do** use the
>> player's property inspector to select the file from disk once and for
>> all - since in my case each of the two players plays just one file,
>> it's the simplest way. But somehow the duration of one of the two
>> files is zero, even though they were both created (as MP3s) by the
>> same app (Fission) by conversion from existing AIFF files, and
>> they've both been attached to their respective players in exactly the
>> same way, and both the original files can be played outside LC
>> without problems.
> That's truly bizarre, I haven't a clue. Do you get anything in the result when it fails?
> Jacqueline Landman Gay | jacque at hyperactivesw.com
> HyperActive Software | http://www.hyperactivesw.com
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
More information about the Use-livecode