RE: How to play a sound file in iOS?

2011-10-11 Thread John Dixon

Bill,

Choose a short sound that you wish to use as your beep sound, for example 
'shortbeep.aiff' and bring it into your iOS environment through the 'copy 
files' pane. In say your preOpenStack handler put :-

  set the beepSound to specialFolderPath(engine)  /shortbeep.aiff

Now when you issue a 'beep' command in one of your scripts, then 
'shortbeep.aiff' will play.

 Subject: Re: How to play a sound file in iOS?
 From: bvla...@mac.com
 Date: Mon, 10 Oct 2011 20:20:23 -0700
 To: use-livecode@lists.runrev.com
 
 John,
 
 Sorry if I'm being dense but I don't see anything on page 31 that will help 
 me.
 
 Bill Vlahos
 
 
 On Oct 10, 2011, at 12:17 PM, John Dixon wrote:
 
  
  Read page 31 of the iOS release notes and all will be revealed..:-)
  
  Subject: Re: How to play a sound file in iOS?
  From: bvla...@mac.com
  
  Jacque,
  
  Where are the alert sounds stored on the iOS devices? It would be better 
  to just use the alert and other sounds already on the phones instead of 
  bringing it with the app.
  
  I don't see it specifically in the specialFolderPath function for iOS.
  
  Thanks,
  Bill Vlahos
  

  ___
  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: How to play a sound file in iOS?

2011-10-10 Thread Bill Vlahos
Jacque,

Where are the alert sounds stored on the iOS devices? It would be better to 
just use the alert and other sounds already on the phones instead of bringing 
it with the app.

I don't see it specifically in the specialFolderPath function for iOS.

Thanks,
Bill Vlahos

On Oct 9, 2011, at 9:02 PM, Bill Vlahos wrote:

 Ah. That did it.
 
 Thank you,
 Bill Vlahos
 
 
 On Oct 9, 2011, at 8:55 PM, J. Landman Gay wrote:
 
 On 10/9/11 10:09 PM, Bill Vlahos wrote:
 How do I play a sound file?
 
 I've attached a wav and an mp3 file to the stack but the following
 statements don't do anything in the simulator.
 
 
 You can only play files that are stored on disk. Include the sound files in 
 the Copy Files pane of the standalone builder. In your scripts, provide a 
 full path relative to the engine:
 
 play specialFolderPath(engine)  slash  gong.wav
 
 Also, older versions of the simulator (3.2) won't play sounds. In 4.2 
 simulator they do play. They always played on a real device though.
 
 -- 
 Jacqueline Landman Gay | jac...@hyperactivesw.com
 HyperActive Software   | http://www.hyperactivesw.com
 
 ___
 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: How to play a sound file in iOS?

2011-10-10 Thread John Dixon

Read page 31 of the iOS release notes and all will be revealed..:-)

 Subject: Re: How to play a sound file in iOS?
 From: bvla...@mac.com

 Jacque,
 
 Where are the alert sounds stored on the iOS devices? It would be better to 
 just use the alert and other sounds already on the phones instead of bringing 
 it with the app.
 
 I don't see it specifically in the specialFolderPath function for iOS.
 
 Thanks,
 Bill Vlahos

  
___
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: How to play a sound file in iOS?

2011-10-10 Thread Bill Vlahos
John,

Sorry if I'm being dense but I don't see anything on page 31 that will help me.

Bill Vlahos


On Oct 10, 2011, at 12:17 PM, John Dixon wrote:

 
 Read page 31 of the iOS release notes and all will be revealed..:-)
 
 Subject: Re: How to play a sound file in iOS?
 From: bvla...@mac.com
 
 Jacque,
 
 Where are the alert sounds stored on the iOS devices? It would be better to 
 just use the alert and other sounds already on the phones instead of 
 bringing it with the app.
 
 I don't see it specifically in the specialFolderPath function for iOS.
 
 Thanks,
 Bill Vlahos
 
 
 ___
 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: How to play a sound file in iOS?

2011-10-10 Thread J. Landman Gay

On 10/10/11 10:20 PM, Bill Vlahos wrote:

John,

Sorry if I'm being dense but I don't see anything on page 31 that will help me.


I didn't look up the page number, but somewhere in the release notes it 
states that iOS doesn't have a default alert sound. If you want one, 
your app has to provide it yourself. The system doesn't provide any.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com

___
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: How to play a sound file in iOS?

2011-10-09 Thread Colin Holgate
When you say attached, do you mean you went into application settings and the 
Copy Files tab, and add the files there?


On Oct 9, 2011, at 11:09 PM, Bill Vlahos wrote:

 I've attached a wav and an mp3 file to the stack but the following statements 
 don't do anything in the simulator.

___
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: How to play a sound file in iOS?

2011-10-09 Thread J. Landman Gay

On 10/9/11 10:09 PM, Bill Vlahos wrote:

How do I play a sound file?

I've attached a wav and an mp3 file to the stack but the following
statements don't do anything in the simulator.



You can only play files that are stored on disk. Include the sound files 
in the Copy Files pane of the standalone builder. In your scripts, 
provide a full path relative to the engine:


play specialFolderPath(engine)  slash  gong.wav

Also, older versions of the simulator (3.2) won't play sounds. In 4.2 
simulator they do play. They always played on a real device though.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com

___
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: How to play a sound file in iOS?

2011-10-09 Thread Bill Vlahos
I actually added it as a control from the File menu.

Following your suggestion I added the file in the Application Builder but this 
too fails the Simulator test because I'm not actually building the application 
yet.

Starting from scratch… I have a .wav file. How do I play it from an application 
on an iPhone?

Thanks,
Bill Vlahos


On Oct 9, 2011, at 8:36 PM, Colin Holgate wrote:

 When you say attached, do you mean you went into application settings and 
 the Copy Files tab, and add the files there?
 
 
 On Oct 9, 2011, at 11:09 PM, Bill Vlahos wrote:
 
 I've attached a wav and an mp3 file to the stack but the following 
 statements don't do anything in the simulator.
 
 ___
 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: How to play a sound file in iOS?

2011-10-09 Thread Bill Vlahos
Ah. That did it.

Thank you,
Bill Vlahos


On Oct 9, 2011, at 8:55 PM, J. Landman Gay wrote:

 On 10/9/11 10:09 PM, Bill Vlahos wrote:
 How do I play a sound file?
 
 I've attached a wav and an mp3 file to the stack but the following
 statements don't do anything in the simulator.
 
 
 You can only play files that are stored on disk. Include the sound files in 
 the Copy Files pane of the standalone builder. In your scripts, provide a 
 full path relative to the engine:
 
 play specialFolderPath(engine)  slash  gong.wav
 
 Also, older versions of the simulator (3.2) won't play sounds. In 4.2 
 simulator they do play. They always played on a real device though.
 
 -- 
 Jacqueline Landman Gay | jac...@hyperactivesw.com
 HyperActive Software   | http://www.hyperactivesw.com
 
 ___
 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