Naive Player Questions

2017-12-04 Thread Graham Samuel via use-livecode
Hi - perhaps due to not picking the right search terms in the documentation, I am confused about playing audio files in LC 8. What I want seems quite simple to me: I want the user to click a button which will cause a single MP3 file to play. While it plays I may or may not want to switch cards o

Re: Naive Player Questions

2017-12-05 Thread Richmond Mathewson via use-livecode
https://www.dropbox.com/s/phplc4g1noardab/Carrot.livecode.zip?dl=0 No player object: on Macintosh the mp3 file comes out as "squishy noise". Richmond. On 5/12/17 12:47 am, Graham Samuel via use-livecode wrote: Hi - perhaps due to not picking the right search terms in the documentation, I am c

Re: Naive Player Questions

2017-12-05 Thread Richmond Mathewson via use-livecode
Happy, Happy 5th of December: by sheer chance I stumbled on how to do this . . . In fact the whole thing is dead easy (not, admittedly clear from the Dictionary). http://forums.livecode.com/viewtopic.php?f=7&t=30258&p=161069#p161069 Best, Richmond. On 5/12/17 12:47 am, Graham Samuel via use

Re: Naive Player Questions

2017-12-05 Thread panagiotis merakos via use-livecode
Hi all, The command "play ' on desktop plays the file as an audioclip, and audio clips can be in WAV, AIFF, or AU format. If you want to play an mp3 file, you have to use a player object. Best, Panos -- On Tue, Dec 5, 2017 at 11:06 AM, Richmond Mathewson via use-livecode < use-livecode@lists.ru

Re: Naive Player Questions

2017-12-05 Thread Graham Samuel via use-livecode
Thanks Panos - I know that. I am however looking for comprehensive instructions as to how to use a player object via script, e.g - embedding an MP3, or alternatively providing a path to the default folder for the MP3 file for standalone creation - starting the player - monitoring the player t

Re: Naive Player Questions

2017-12-05 Thread panagiotis merakos via use-livecode
Hi Graham, In short: *- embedding an MP3, or alternatively providing a path to the default folder for the MP3 file for standalone creation* Include the .mp3 file (say "myFile.mp3") in the "Copy Files" section. This will be accessible from the **standalone** using the function. * - starting the

Re: Naive Player Questions

2017-12-05 Thread Sannyasin Brahmanathaswami via use-livecode
Panos wrote: You can do that by checking "the playmate of player 1". If it is 0, then the player does not play "playmate" ?? ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage

Re: Naive Player Questions

2017-12-05 Thread Klaus major-k via use-livecode
Hi Panos, > Am 05.12.2017 um 14:17 schrieb panagiotis merakos via use-livecode > : > ... > You can do that by checking "the playmate of player 1". ... where "Player 1" = Hugh Heffner (RIP)? :-D Best Klaus -- Klaus Major http://www.major-k.de kl...@major-k.de ___

Re: Naive Player Questions

2017-12-05 Thread panagiotis merakos via use-livecode
Lol hahaha, sorry :) I meant "playrate", and indeed I wrote "playrate", but Safari auto-complete keeps changing it to "playmate" :) Best, Panos -- On Tue, Dec 5, 2017 at 3:58 PM, Klaus major-k via use-livecode < use-livecode@lists.runrev.com> wrote: > Hi Panos, > > > Am 05.12.2017 um 14:17 schr

Re: Naive Player Questions

2017-12-05 Thread J. Landman Gay via use-livecode
Specialfolderpath("resources") is especially convenient in another way. In a standalone it points to the location of the files that were added to the Copy Files pane of the standalone settings. But in the IDE it points to the folder containing the current mainstack. If you organize your files on

Re: Naive Player Questions

2017-12-05 Thread Graham Samuel via use-livecode
Thanks to Panos and to Jacque (and earlier to Richmond, even if his link had an alarming effect on my DropBox!). Am I right to think the LC documentation is deficient in this area, or did I just miss it? For example, although it’s in the LC dictionary, “playstopped” can’t be found by searching t

Re: Naive Player Questions

2017-12-05 Thread Richmond Mathewson via use-livecode
NO: a player does not "demand" an external file as my example stack demonstrates: https://www.dropbox.com/s/9v2juqqu7ojb83v/Carrot%20Player.livecode.zip?dl=0 [ and I would be VERY interested to know, Graham, what that did to your DropBox ] The player in that stack plays an embedded mp3 file.

Re: Naive Player Questions

2017-12-05 Thread Klaus major-k via use-livecode
Hi Richmond, > Am 05.12.2017 um 19:38 schrieb Richmond Mathewson via use-livecode > : > > NO: a player does not "demand" an external file as my example stack > demonstrates: > https://www.dropbox.com/s/9v2juqqu7ojb83v/Carrot%20Player.livecode.zip?dl=0 > [ and I would be VERY interested to know,

Re: Naive Player Questions

2017-12-05 Thread Richmond Mathewson via use-livecode
I stand corrected! You are indeed right: I moved my "carrot.mp3" file out of the same folder as the stack and, no, no sound despite their being an embedded "carrot.mp3" file in the stack. What a bu**er. Richmond. On 5/12/17 8:45 pm, Klaus major-k via use-livecode wrote: Hi Richmond, Am 0

Re: Naive Player Questions

2017-12-05 Thread Graham Samuel via use-livecode
I don’t really know if it was DropBox exactly, but I got a temporary glitch that made my Mac freeze the first time I tried to download your zip file via the linkg. I tried it again just now and it worked. If I find out any more about what I did, I’ll let you know! Graham > On 5 Dec 2017, at 19:

Re: Naive Player Questions

2017-12-06 Thread Richmond Mathewson via use-livecode
However, the fact that "import audio file" allows one to import an mp3 file is a bit misleading. Richmond. On 5/12/17 9:17 pm, Richmond Mathewson wrote: I stand corrected! You are indeed right: I moved my "carrot.mp3" file out of the same folder as the stack and, no, no sound despite their be

Re: Naive Player Questions

2017-12-06 Thread Graham Samuel via use-livecode
Yes, this is just plain nonsense - it may be a leftover from a previous LC/Revolution idea that “play” would have a larger range of possible formats, but in the current versions of LC the IDE should warn one off, no? Graham > On 6 Dec 2017, at 10:26, Richmond Mathewson via use-livecode > wrot

Re: Naive Player Questions

2017-12-06 Thread Sannyasin Brahmanathaswami via use-livecode
Richmond wrote: NO: a player does not "demand" an external file as my example stack demonstrates: https://www.dropbox.com/s/9v2juqqu7ojb83v/Carrot%20Player.livecode.zip?dl=0 The player in that stack plays an embedded mp3 file. Does not play here (Mac OS X) of cour

Re: Naive Player Questions

2017-12-06 Thread Richmond Mathewson via use-livecode
I have already admitted to making a complete foll of myself re that in an earlier post. Richmond. On 6/12/17 9:11 pm, Sannyasin Brahmanathaswami via use-livecode wrote: Richmond wrote: NO: a player does not "demand" an external file as my example stack demonstrates: https:

Re: Naive Player Questions

2017-12-06 Thread J. Landman Gay via use-livecode
On 12/6/17 7:49 AM, Graham Samuel via use-livecode wrote: Yes, this is just plain nonsense - it may be a leftover from a previous LC/Revolution idea that “play” would have a larger range of possible formats, but in the current versions of LC the IDE should warn one off, no? Probably. There i

Re: Naive Player Questions

2017-12-06 Thread Klaus major-k via use-livecode
Hi Graham, > Am 06.12.2017 um 14:49 schrieb Graham Samuel via use-livecode > : > > Yes, this is just plain nonsense - it may be a leftover from a previous > LC/Revolution idea that “play” would have a larger range of possible formats, > but in the current versions of LC the IDE should warn one