Re: Play MP3 - What format do you use for mobile?

2016-08-07 Thread Peter TB Brett

On 08/08/2016 06:05, Sannyasin Brahmanathaswami wrote:

This produces garbage on Mac OS X and so I presume it would on mobile
as well..


Is mergAV an option?

  Peter

--
Dr Peter Brett 
LiveCode Technical Project Manager

LiveCode 2016 Conference https://livecode.com/edinburgh-2016/

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Play MP3 - What format do you use for mobile?

2016-08-08 Thread Monte Goulding
I doubt if the player object or mobile control can't play a file that mergAV 
will be any different as all three use the same framework on iOS and Mac. 
Unless of course we are discussing pre-10.8 Mac.

Cheers

Monte

Sent from my iPhone

On 8 Aug 2016, at 4:01 PM, Peter TB Brett  wrote:

>> This produces garbage on Mac OS X and so I presume it would on mobile
>> as well..
> 
> Is mergAV an option?


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Play MP3 - What format do you use for mobile?

2016-08-08 Thread Devin Asay
BR,

MP3s play natively on both iOS and android. You should be able to use the play 
command followed by the path to the file. Or is the issue that you need to have 
it cross platform? In that case WAV is a good choice.

Devin 

Sent from my iPhone

> On Aug 8, 2016, at 6:05 AM, Sannyasin Brahmanathaswami  
> wrote:
> 
> This produces garbage on Mac OS X and so I presume it would on mobile as 
> well..
> 
> 
> play "/Users/app/source/shared/audio/aum.mp3"
> 
> No doubt because MP3 is not supported by the engine.
> 
> For cross platform to work anywhere… is WAV still what everyone is using?
> 
> I'm looking for the best smallest, yet not-to-bad quality codec for
> 
> short voice instructions,
> 
> UI "rewards"   "Good Boy!"
> 
> sounds that you might use in a game
> 
> all of which would not be using a player.  but just a path to file on disk 
> (i.e. not an embedded clip)
> 
> What do you do?
> 
> BR
> 
> 
> 
> 
> 
> ___
> use-livecode mailing list
> use-livecode@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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Play MP3 - What format do you use for mobile?

2016-08-08 Thread Mark Waddingham

On 2016-08-08 10:39, Devin Asay wrote:

MP3s play natively on both iOS and android. You should be able to use
the play command followed by the path to the file. Or is the issue
that you need to have it cross platform? In that case WAV is a good
choice.


Devin is correct - the 'play' command should work on iOS and Android 
with mp3s. For the desktop platforms, you are best to use a hidden 
player. This can be abstracted with a command in a library script - 
which 'does the right thing' on all platforms. i.e.


command playSound pSoundFile
  if the environment is "mobile" then
play pSoundFile
  else
set the filename of player "myHiddenPlayer" to pSoundFile
play player "myHiddenPlayer"
  end if
end playSound

Warmest Regards,

Mark.

--
Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/
LiveCode: Everyone can create apps

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Play MP3 - What format do you use for mobile?

2016-08-08 Thread Sannyasin Brahmanathaswami
Mark Waddingham" wrote:

command playSound pSoundFile
   if the environment is "mobile" then
 play pSoundFile
   else
 set the filename of player "myHiddenPlayer" to pSoundFile
 play player "myHiddenPlayer"
   end if
end playSound

-
Mark: Welcome back to "After The Conference Land" wish I could have been there.

play fork code: Thanks, perfect… we are already using this model for actual 
exposed players w/controls for the user since we have to fork to a mobile 
player in iOS/Android and the native LC player on desktop anyway, so this 
follows that same paradigm, only even easier. In fact we might adopt this 
instead of an exposed player and only give the user the option to stop or 
start, even for a long recording. I'm not close to user expectations for 
control over audio play. The younger set here run all day with earbuds in… I 
don't…  Even in iTunes all I ever do is stop or start what I'm listening to. I 
don't think there is a strong use case to scrub forward or back, but I could be 
wrong.

The dictionary offers these are related props in entry on "play" property: 
looping, dontRefresh, playRate, showSelection, frameCount, playLoudness, 
callbacks, currentTime, playDestination 

Can we extract the currentTime from just a "play sound" in progress or that was 
stopped? Is suspect that level of control is only available for the player. 

SIZE ISSUES:

I just saved the same 49K mp3 file as WAV with the same sample rate and bit 
rate settings as wav. The difference in size was even more dramatic than I 
expected. WAV was 678k!  We are not talking here about short beeps or quick 
"bird tweets" or midi type loops, but relatively long (for apps)  10-30 second 
voice instructions.

So if one is to add e.g. 100 , 15 second sound files to your app package, that 
would be:

~5MB of MP3's 

vs 

67.8MB of WAV!  

OT -- RECORDING:  I'm a newbie on this mobile delivery platform. We do have our 
high end Sennhauser  → Edirol recording system for the important work, that 
goes to web, where I run files carefully through dynamics processor, tube 
equalizer, scrub the high range, normalize and save with dither… etc.,  but I'm 
looking here at at Q and D production process that still meets the 
requirements. Any advice appreciated. 

Input settings in Adobe Audition set to Sample rate 16000 hz, mono, bit depth 
to 24. 14 seconds. Made with an inexpensive USB Plantronics USB headset/mic: 
same one I use for Skype. Anything lower that this starts to sound terrible. 

Only sound processing was to sample the hiss on the floor and remove that with 
noise reduction and export with same settings as input.

The wav has a minutely better quality than the mp3… which one would expect. But 
for voice I'm not sure the difference will be perceived by the user. You have 
to listen to them side-by-side to "get critical"…  for those interested, check 
out these two sound files… a 14 second "instructions" test. 

http://wiki.hindu.org/outgoing/instructions.mp3
http://wiki.hindu.org/outgoing/instructions.wav


 

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Play MP3 - What format do you use for mobile?

2016-08-08 Thread stephen barncard
Brahma,

did you turn off Quicktime?


We have a new audio foundation in LC. I'm about to test it myself for the
first time.

I tried many times to RECORD something today... and nothing worked until I
did this   ( on LC 8.0.1 indy)

*set dontUseQT to false; answer record; put the result*


look at all the new formats we can record...
clearly all the new formats too like m4a of various flavors.

I would assume we can play them back too now..

this is quite exciting..

to be continued.

Stephen Barncard - Sebastopol Ca. USA -
mixstream.org
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Play MP3 - What format do you use for mobile?

2016-08-08 Thread Jerry Jensen
Stephen: see bug http://quality.livecode.com/show_bug.cgi?id=18160
Something isn’t right with dontUseQT.
.Jerry

> On Aug 8, 2016, at 12:52 PM, stephen barncard 
>  wrote:
> 
> Brahma,
> 
> did you turn off Quicktime?
> 
> 
> We have a new audio foundation in LC. I'm about to test it myself for the
> first time.
> 
> I tried many times to RECORD something today... and nothing worked until I
> did this   ( on LC 8.0.1 indy)
> 
> *set dontUseQT to false; answer record; put the result*
> 
> 
> look at all the new formats we can record...
> clearly all the new formats too like m4a of various flavors.
> 
> I would assume we can play them back too now..
> 
> this is quite exciting..
> 
> to be continued.
> 
> Stephen Barncard - Sebastopol Ca. USA -
> mixstream.org
> ___
> use-livecode mailing list
> use-livecode@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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Play MP3 - What format do you use for mobile?

2016-08-08 Thread stephen barncard
at least I got the new dialog up.

Stephen Barncard - Sebastopol Ca. USA -
mixstream.org

On Mon, Aug 8, 2016 at 2:00 PM, Jerry Jensen  wrote:

> Stephen: see bug http://quality.livecode.com/show_bug.cgi?id=18160
> Something isn’t right with dontUseQT.
> .Jerry
>
> > On Aug 8, 2016, at 12:52 PM, stephen barncard <
> stephenrevoluti...@barncard.com> wrote:
> >
> > Brahma,
> >
> > did you turn off Quicktime?
> >
> >
> > We have a new audio foundation in LC. I'm about to test it myself for the
> > first time.
> >
> > I tried many times to RECORD something today... and nothing worked until
> I
> > did this   ( on LC 8.0.1 indy)
> >
> > *set dontUseQT to false; answer record; put the result*
> >
> >
> > look at all the new formats we can record...
> > clearly all the new formats too like m4a of various flavors.
> >
> > I would assume we can play them back too now..
> >
> > this is quite exciting..
> >
> > to be continued.
> >
> > Stephen Barncard - Sebastopol Ca. USA -
> > mixstream.org
> > ___
> > use-livecode mailing list
> > use-livecode@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@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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Play MP3 - What format do you use for mobile?

2016-08-08 Thread Jerry Jensen
And I’m happy that you did! I never knew of it. Someday I hope to use it, but 
not right now.
Also see bug 18161 which is a follow-up to 18160. Eesh.
.Jerry

> On Aug 8, 2016, at 2:17 PM, stephen barncard 
>  wrote:
> 
> at least I got the new dialog up.
> 
> Stephen Barncard - Sebastopol Ca. USA -
> mixstream.org
> 
> On Mon, Aug 8, 2016 at 2:00 PM, Jerry Jensen  wrote:
> 
>> Stephen: see bug http://quality.livecode.com/show_bug.cgi?id=18160
>> Something isn’t right with dontUseQT.
>> .Jerry
>> 
>>> On Aug 8, 2016, at 12:52 PM, stephen barncard <
>> stephenrevoluti...@barncard.com> wrote:
>>> 
>>> Brahma,
>>> 
>>> did you turn off Quicktime?
>>> 
>>> 
>>> We have a new audio foundation in LC. I'm about to test it myself for the
>>> first time.
>>> 
>>> I tried many times to RECORD something today... and nothing worked until
>> I
>>> did this   ( on LC 8.0.1 indy)
>>> 
>>> *set dontUseQT to false; answer record; put the result*
>>> 
>>> 
>>> look at all the new formats we can record...
>>> clearly all the new formats too like m4a of various flavors.
>>> 
>>> I would assume we can play them back too now..
>>> 
>>> this is quite exciting..
>>> 
>>> to be continued.
>>> 
>>> Stephen Barncard - Sebastopol Ca. USA -
>>> mixstream.org
>>> ___
>>> use-livecode mailing list
>>> use-livecode@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@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@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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Play MP3 - What format do you use for mobile?

2016-08-08 Thread Monte Goulding

> On 9 Aug 2016, at 7:23 AM, Jerry Jensen  wrote:
> 
> And I’m happy that you did! I never knew of it. Someday I hope to use it, but 
> not right now.
> Also see bug 18161 which is a follow-up to 18160. Eesh.

QuickTime is now deprecated. We are implementing cross platform audio recording 
as an example implementation of Infinite LiveCode. Until then there is no audio 
recording support on Windows at all or on Mac with dontUseQT true. QT is a very 
old API and is unsupported by Apple. It should be avoided unless you are 
specifically targeting 10.6 or 10.7 systems. If someone has urgent need for Mac 
audio recording then it is quite feasible that the open source mergMicrophone 
could be made to cross compile to Mac.

Cheers

Monte
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Play MP3 - What format do you use for mobile?

2016-08-08 Thread Jerry Jensen
> On Aug 8, 2016, at 4:24 PM, Monte Goulding  wrote:
> 
> 
>> On 9 Aug 2016, at 7:23 AM, Jerry Jensen  wrote:
>> 
>> And I’m happy that you did! I never knew of it. Someday I hope to use it, 
>> but not right now.
>> Also see bug 18161 which is a follow-up to 18160. Eesh.
> 
> QuickTime is now deprecated. We are implementing cross platform audio 
> recording as an example implementation of Infinite LiveCode. Until then there 
> is no audio recording support on Windows at all or on Mac with dontUseQT 
> true. QT is a very old API and is unsupported by Apple. It should be avoided 
> unless you are specifically targeting 10.6 or 10.7 systems. If someone has 
> urgent need for Mac audio recording then it is quite feasible that the open 
> source mergMicrophone could be made to cross compile to Mac.

Thanks Monte. Ah, I see! The 8.1 dictionary says that too. I just hadn’t looked 
there, still using 8.0.1. I guess its a documentation bug in 8.0.1 that doesn’t 
describe what actually happens in 8.0.1. I suppose if I am going to whine about 
a bug I really should check it on the very latest DP.

It still shouldn’t crash on quit even if an ignoramus like me tries to use it.

Onward,
Jerry


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Play MP3 - What format do you use for mobile?

2016-08-08 Thread stephen barncard
On Mon, Aug 8, 2016 at 4:45 PM, Jerry Jensen  wrote:

> t still shouldn’t crash on quit even if an ignoramus like me tries to use
> it.
>
> Onward,
> Jerry
>

so wait. The new recording panel works, but actually trying to record
something doesn't?

Stephen Barncard - Sebastopol Ca. USA -
mixstream.org
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Play MP3 - What format do you use for mobile?

2016-08-08 Thread Monte Goulding

> On 9 Aug 2016, at 9:45 AM, Jerry Jensen  wrote:
> 
> It still shouldn’t crash on quit even if an ignoramus like me tries to use it.

Yes if you are getting a crash under any circumstances in LiveCode we need a 
bug report about it so we can track it down but in this case testing to ensure 
you are experiencing it in 8.1 would be a good idea as so much has changed in 
relation to QuickTime.

Cheers

Monte
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Play MP3 - What format do you use for mobile?

2016-08-08 Thread Jerry Jensen

> On Aug 8, 2016, at 5:14 PM, Monte Goulding  wrote:
> 
> 
>> On 9 Aug 2016, at 9:45 AM, Jerry Jensen  wrote:
>> 
>> It still shouldn’t crash on quit even if an ignoramus like me tries to use 
>> it.
> 
> Yes if you are getting a crash under any circumstances in LiveCode we need a 
> bug report about it so we can track it down but in this case testing to 
> ensure you are experiencing it in 8.1 would be a good idea as so much has 
> changed in relation to QuickTime.

Just checked, it crashes in 8.1 DP3 as well. I’ll add to the bug report.
.Jerry



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Play MP3 - What format do you use for mobile?

2016-08-08 Thread Monte Goulding

> On 9 Aug 2016, at 11:44 AM, Jerry Jensen  wrote:
> 
> Just checked, it crashes in 8.1 DP3 as well. I’ll add to the bug report.

Thanks

Cheers

Monte
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode