Background sound stutter when idle in IOS

Hello

I am facing a very annoying problem on iOS. I've done a few apps guided meditations, and I need to play meditation is the background. Problem is that whenever the device goes into "idle" (either) mode, the sound stutters and is reduced to silence for 1 or 2 seconds. Which is very annoying, especially when you are in the middle of a meditation and need to clearly hear the instructions.

I have a somewhat more complex code in my applications, using SoundChannel and SoundLoaderContext objects, but even with very simple code below, the problem occurs:

package {}

import flash.display.Sprite;

import flash.media.Sound;

import flash.net.URLRequest;

SerializableAttribute public class Main extends Sprite

{

public void Main()

{

var mySound:Sound = new Sound();

mySound.load (new URLRequest("Local/Demo.mp3"));

mySound.play ();

}

}

}

In my application.xml file, I have:

< InfoAdditions > <! [CDATA]

< key > UIBackgroundModes < / key >

< table >

Audio < string > < / string >

< / array >

[]] > < / InfoAdditions >

I tried a lot of things, as in my object SoundLoaderContext using a large buffer, or with "NativeApplication.nativeApplication.executeInBackground = true", but nothing helped. It occurs on multiple devices (iPhone 4 and iPhone 6). It happens with AIR 19 and the last beta of AIR 22.

The only occurrence when it doesn't happen is when I launch audio, press the HOME button (so the application is sent in the background, and I see the dashboard iOS), and then press the power button. Here, no interruption of the sound. But if I press the power button while the application is in the foreground, the hiccups/stutter/pause bug occurs.

If you just want to hear what it sounds like, you can download this app: Beyond the assertions - meditations guided on the App Store

Then launch the free audio session and once he started playing, press the power button on the unit. You will hear the noise is reduced to silence briefly for a second or 2, but just be very annoying.

Could you please help us with this, because it must be a problem of general block for anyone doing an audio player on iOS, and it is very unpleasant for the user.

Thank you very much!

Frédéric

PS: I read on this DONKEY: GitHub - freshplanet/DONKEY-background-music: Air Extension Native (iOS and Android) to manage the background music and I do not know if it would solve the problem. Unfortunately, he is 4 years old, and I develop on PC, so I can't recompile it. Anyone have a more recent version please?

I just tested 24 beta AIR, and the problem is solved! Thank you very much to the Adobe AIR team, it is a life saver for developers of audio applications. See you soon!

Tags: Adobe AIR

Similar Questions

  • How to make the background sound auto replay when the user back to the page?

    Hello. I do a flash project using Adobe Flash CS6 and AS3. Add background sound in every scene. However, I had put a single command to the sound of bg to stop in every scene. But the problem is when the user back to the previous page, the sound does not play. Anyone knows how to wow the background when the user returns without any power button etc.? Thanks in advance!

    var mySound:Sound = new Sound();
    mySound.load (new URLRequest ("sound.mp3"));
    mySound.play ();

  • Windows 7 64 bit using 3 GB of 8 GB RAM when idle.

    I've noticed recently that Windows 7 64 bit using 3 GB of RAM slowed.  When I start first of all, the use of the RAM is about 1.2 GB or more.  However, after that my computer has been for some time, that number slips slowly up to 3 GB without me all other running programs.  I thought it could be virus/spyware/malware, so I formatted and did a new install.  The same day as the new installation, I noticed the same behavior.

    Is this normal?  Windows 7 is recommended to use 3GB 8 GB inactive?

    Thanks in advance for any help!

    My issue was not with Windows 7 using large amounts of RAM "at random".  The question I saw consisted of RAM usage to leave about 1 GB and slowly creeping up to 3 GB and stay there until I rebooted.

    Through several days of trail and error, I found the problem.  In general, I use a download manager to download files (free download manager, FDM).  There is apparently a problem with FDM and Windows 7 I have observed that the question of the RAM with FDM run and I have yet to observe with FDM, no matter what I do.  Either way, I used this same version of FDM Windows XP and never had any problems with the use of the RAM.  Therefore, I'm not sure if it's a FDM problem or a problem with running on Windows 7 FDM (although my experience with FDM and XP leads me to believe that there is a problem with FDM running on Windows 7).
    Without FDM running Windows 7 RAM use is between 880 MB and 1.5 GB.  Everyone know the RAM on this amount use likely has several processes that run in the background as Windows 7, when idle, should never require more than that.
  • Can you add a background sound on the site of Muse?

    I found a solution very inpractical to add a background sound: add sound on another Site and make a link from Muse to this file outside. Very little practical use and not much:

    1. The sound starts everywhere when we change the page in Muse
    2. There is no control for music (volume, power switch, etc.)
    3. Very complicated.

    Is it possible to import an audio file into a page with audio control specigic?

    Thanks for all the solutions I receive

    Yve

    See the thread below for some suggestions.

    http://forums.Adobe.com/message/5277224

    Thank you

    Vinayak

  • Background sound (running on select slides)

    I have the narration on most of my classes and I want to run a background music on six of the eight blades.

    When I select audio background, he added music to all the slides and I don't want that. I tried to import it, but it won't let me put an audio file by slide. I work with Captivate 4.

    Any ideas?

    Hi Kristen

    Add audio as background to the project (Audio > Audio background).

    On the slides when you do not have audio, examine the properties of the slide. On the Properties dialog box is an option titled "Stop background sound.

    Enable the option, and you should not hear any background sound for this slide. But others will always have it.

    See you soon... Rick

    Useful and practical links

    Captivate wish form/Bug report form

    Certified Adobe Captivate training

    SorcerStone blog

    Captivate eBooks

  • having an iphone 6.  The ringtone does not make a noise.   I tested the ringtone and it sounds however when I receive a call or text or email, the Bell is silent

    I have an iphone 6.  The ringtone does not make a noise.   I tested the ringtone and it sounds however when I receive a call or text or email, the Bell is silent

    Hello Jimmy10 66,

    Thank you for reaching out to the Community Support from Apple. I know how it is important to follow your alerts, and I want to help you get your work again.

    Before we get too far, it's always a good idea to check that your 'secret' button just above your volume controls is not engaged. If you see that the yellow indicator go ahead and switch to the other position to turn it off.

    Alternatively, you can drag up from the bottom of the screen and make sure that the control of "do not disturb" is disabled.

    If those who are for the time off, go ahead and restart your phone and retest alerts. If the behaviour continues or if you encounter any problems, please reach out again and let the community know what other steps you have tried. The entire community is here to help.

    Best regards

  • Hallo why? When I update ios. When the image has finished error itunes and usb

    Hallo why? When I update ios. When the image has finished error itunes and usb

    Connect the iPhone to the computer that you are synchronizing usually with

    and follow the prompts to iTunes on this computer. If you

    do not generally in sync with a computer, you should always use

    iTunes on a computer to complete the update.

  • How to fix stuck battery and automatic when restart updated ios 9.3.3

    How to fix stuck battery and automatic when restart updated ios 9.3.3

    Lambung writes:

    How to fix stuck battery and automatic when restart updated ios 9.3.3

    What do you mean battery stuck?

    the basic troubleshooting steps are: reboot, reset, restore from a backup or restore as a new.

  • My iPad is one sound alarming when I played one of my gammyes now I find that it's not hot.  Could I have a virus?

    My iPad is a scary sound alarm when I was playing a game and now it's getting hot.  Could I have picked up a virus in the game that I was playing?  I've never heard of an iPad for a virus, but I fear that it is the only thing that could explain what happened.  I have not used since it happened last night.  I won't be able to get an an Apple dealer until the end of the week.  Anyone had this happen with their iPad?

    Unless you jailbroken your device and also long as you download only games on the app store, there is no possible virus.

    so, what kind of sound was it? Could we have your game?

  • I can't have my Ip (5s) when I update iOS 9.3 because have an apple ID may be used hiden activity

    I can't have my Ip (5s) when I update iOS 9.3 because have an apple ID may be used hiden activity. I'm very very sad

    help me help me...

  • What's someone to find your Apple TV remote loses its charge when idle for a period of time?

    My new Apple TV remote loses its charge when idle for a few days. I was sure to leave load for at least 9 hours, as suggested. It only is not heavy use until the battery goes down.

    I have never accused mine when I had and used it for about a week.  No problem.  It seems that something is wrong with your charger or the battery of the remote control.

  • I have phone 6s more camera is not working and no sound and when I want to take a picture, it's dark

    I have phone 6s more camera is not working and no sound. When I want to take a picture, it's dark. I have change the new one to I care service in Thailand and I got the new one but the problem remains the same. Pls help me how should I do?

    Read: get help with the camera on your iPhone, iPad or iPod touch - Apple Support

  • No sound plays when I try to watch movies. Help

    I can get sound from my computer but no sound plays when I try to watch movies.

    UH No.

    Maybe passed up a Codec.

    Install a codec such as K-Lite package (you can find it by using a search engine).

    See you soon,.

    Jerry

  • Remove sound breaks when CD burning...

    I'm curious to know if this program will allow me to remove the sound breaks when burning CDs that the end of the songs which should mix together develop using windows 11. I don't remember having these problems with older versions of Windows Media Player. I hope I explained this correctly... And I would like to know what changes can I expect if I download this program?

    I'm curious to know if this program will allow me to remove the sound breaks when burning CDs that the end of the songs which should mix together develop using windows 11. I don't remember having these problems with older versions of Windows Media Player. I hope I explained this correctly... And I would like to know what changes can I expect if I download this program?

    =======================================
    I don't know what program you are talking about but FWIW...
    the following freeware to burn an Audio CD gapless (music).

    (FWIW... it's always a good idea to create a system)
    Restore point before installing software or updates)

    CDBurnerXP
    http://www.CDBurnerXP.se/
    (Yes, it works on XP, Vista, 7)

    CDBurnerXP to make Audio disc
    http://CDBurnerXP.se/help/audio/compileaudio See screenshot:
    http://farm3.static.Flickr.com/2776/4445691590_42c5f5b857_o.jpg

    John Inzer - MS - MVP - Digital Media Experience - Notice_This is not tech support_I'm volunteer - Solutions that work for me may not work for you - * proceed at your own risk *.

  • I went to my sounds in my Panel configuration and then sounds and when he gave me the error "%SystemRoot%\media\Windows XP erreur.wav.

    original title: %SystemRoot%\media\Windows XP erreur.wav

    Hello
    When I arrived today at my computer, I noticed that I couldn't hear a sound. So I checked my speakers then I checked to see if she was silent, I then checked to see if my strings have been properly fixed. Everything is as it should be. I went to my sounds in my Panel configuration and then sounds and when he gave me the error "%SystemRoot%\media\Windows XP erreur.wav.

    Can you help me?

    Maria Romero

    Hello

    1. don't you make changes to the computer until the problem occurred?

    I suggest you try the steps from the link below and check if it helps.

    No sound in Windows:

    http://Windows.Microsoft.com/en-us/Windows/help/no-sound-in-Windows

    Hope this information is useful.

Maybe you are looking for