beepsound on iOS

Terry Judd terry.judd at unimelb.edu.au
Wed Oct 12 06:29:23 EDT 2016


Thanks Mike, I’ll give all that a go.

Terry...

On 12/10/2016 9:22 pm, "use-livecode on behalf of Mike Kerner" <use-livecode-bounces at lists.runrev.com on behalf of MikeKerner at roadrunner.com> wrote:

    1. You have to include your own beep sounds with your app.  Use "Copy
    Files" in the standalone application settings
    2. In your code, use "set the beepsound to" and the path to the file
    3. mergAVAudioSessionSetCategory "playback","false","true"*#monte defaults
    the speaker to off when barcode is on*
    When you're done beeping,    mergAVAudioSessionSetCategory "playback" *#revert
    to defaults*
    
    On Wed, Oct 12, 2016 at 3:00 AM, John Dixon <DixonJA at hotmail.co.uk> wrote:
    
    > Are you supplying a sound file for the beepsound to play ?... as in...
    >
    > set the beepSound to specialFolderPath("engine") & "/shortbeep.aiff"
    >
    >
    >
    > ________________________________
    > From: use-livecode <use-livecode-bounces at lists.runrev.com> on behalf of
    > Terry Judd <terry.judd at unimelb.edu.au>
    > Sent: 12 October 2016 04:24
    > To: How to use LiveCode
    > Subject: Re: beepsound on iOS
    >
    > Not quite answering my own question but there might be an interaction with
    > mergeAV involved (I'm trying to provide a bit of audio/tactile feedback
    > after a QR code is recognised) as the beep seems to sort of work (vibrates
    > but doesn't beep) on a previous card before mergeAV is initialized.
    >
    > Terry...
    >
    > From: Terry Judd <terry.judd at unimelb.edu.au>
    > Date: Wednesday, 12 October 2016 1:27 pm
    > To: How to use LiveCode <use-livecode at lists.runrev.com>
    > Subject: beepsound on iOS
    >
    > I'm trying to play a simple beep on iOS by setting the beepsound (to
    > either "system" or "vibrate") and calling beep, but I'm getting nothing. If
    > I place the code in a try/catch statement then the returned error is
    > '535,4,1'. Any ideas on what might be going wrong here?
    >
    > Terry...
    > _______________________________________________
    > 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
    > Runtime Revolution - use-livecode Mailing List<http://lists.runrev.com/
    > mailman/listinfo/use-livecode>
    > lists.runrev.com
    > This mailing list is intended for discussion relating to using LiveCode.
    > To see the collection of prior postings to the list, visit the use-livecode
    > Archives
    >
    > _______________________________________________
    > 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
    >
    
    
    
    -- 
    On the first day, God created the heavens and the Earth
    On the second day, God created the oceans.
    On the third day, God put the animals on hold for a few hours,
       and did a little diving.
    And God said, "This is good."
    _______________________________________________
    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