Audio in iOS app

I am new to iOS development and am trying to add audio to my app. I have watched several videos and read some documentation on this topic but have not been successful. I have gotten several pieces of code together and have tried the wav and mp3 format with no success. I have used the Audio Toolbox and AVPlayer frameworks. I am using Xcode4.5 and the iOS6.1 simulator.
Could anyone please direct me to some good tutorial and/or good documentation. If you could explain how to do this in this forum please do.
Thanks in advance!

I am new to iOS development and am trying to add audio to my app. I have watched several videos and read some documentation on this topic but have not been successful. I have gotten several pieces of code together and have tried the wav and mp3 format with no success. I have used the Audio Toolbox and AVPlayer frameworks. I am using Xcode4.5 and the iOS6.1 simulator.
Could anyone please direct me to some good tutorial and/or good documentation. If you could explain how to do this in this forum please do.
Thanks in advance!

Similar Messages

  • What are some of the best iOS apps can remotely played videos, audios, photos and text files from a NAS hdd connected to Airport Extreme USB port? And how to configure this setup?

    I have already set up NAS hdd as connecting it at USB port of Airport Extreme, i also want to remotely access it from iPhone, so what's the next step? What are some of the best iOS apps can remotely played videos, audios, photos and text files from the NAS hdd and how to configure this setup?

    *Edit - I am not able to connect to the NAS when hardwired to the airport extreme.

  • How come although iPads are getting more powerful, the iOS apps from apple are so mediocre and just not that great? We spend all this money for the latest ipad and all we get is these $5 video and music apps from apple. Why create the iOS platform and onl

    How come although iPads are getting more powerful, the iOS apps from apple are so mediocre and just not that great? We spend all this money for the latest ipad and all we get is these $5 video and music apps from apple. Why create the iOS platform and only offer so so apps like IMovie and GarageBand ? While other developers are offering much better apps like pinnacle studio for video, Cubasis and Auria for music production, apple has not showed much growth in terms of innovation. While there's nothing wrong with making an app like GarageBand where "anyone " can make a song, how about something for real musicians or an app not so basic as it get for video editing? After spending 0ver $700 on an ipad I'd be willing to spend more than $5 for a better video or audio app.

    First, try a system reset although I can't give you any confidence.  It cures many ills and it's quick, easy and harmless...
    Hold down the on/off switch and the Home button simultaneously until you see the Apple logo.  Ignore the "Slide to power off" text if it appears.  You will not lose any apps, data, music, movies, settings, etc.
    If the Reset doesn't work, try a Restore.  Note that it's nowhere near as quick as a Reset.  It could take well over an hour!  Connect via cable to the computer that you use for sync.  From iTunes, select the iPad/iPod and then select the Summary tab.  Follow directions for Restore and be sure to say "yes" to the backup.  You will be warned that all data (apps, music, movies, etc.) will be erased but, as the Restore finishes, you will be asked if you wish the contents of the backup to be copied to the iPad/iPod.  Again, say "yes."
    At the end of the basic Restore, you will be asked if you wish to sync the iPad/iPod.  As before, say "yes."  Note that that sync selection will disappear and the Restore will end if you do not respond within a reasonable time.  If that happens, only the apps that are part of the IOS will appear on your device.  Corrective action is simple -  choose manual "Sync" from the bottom right of iTunes.
    If you're unable to do the Restore, go into Recovery Mode per the instructions here.

  • Can no longer return to iOS app in AIR 4.0 Beta

    Is it me or is it no longer possible to return to an iOS app in AIR 4.0 beta? An app I just compiled restarts every time you launch it. No such problem in AIR 3.9.

    Just yesterday I saw a problem where going to the home screen and back would either crash the app or would leave it in a frozen state. It only happened if by that time I had been via a part of the app that played an animation that used stream audio.
    Might you be seeing the same kind of thing, where you can go in and out of your first screen, but get crashes or hangs when going from another screen?
    I didn’t log a bug yet because it’s a hard problem to narrow down, because the crashing happens when you return to the app, and so doing a debug session won’t help, the session closes when you go to the home screen.

  • How to restore audio in iOS 8 (beta 5) after requesting mic access?

    I posted this question over on StackOverflow before realizing that the AIR team might be working on a fix: http://stackoverflow.com/questions/25168882/air4-how-to-restore-audio-in-ios-8-beta-5-afte r-requesting-mic-access
    In a nutshell, requesting microphone input in iOS 8 will terminate all audio if it's done AFTER a sound has already been played, but not if it occurs before (sample code is in SO post).
    Apps were tested using an iPad 3 the Flex 4.6.0 SDK with AIR 4.0, and with AIR 14.0 - the same behaviour was exhibited.
    This poses serious problems for our apps, which are already released and being updated for iOS 8, so please let me know if this is a known issue, and if not, whether you're able to confirm from your side.
    Thanks!

    Yes, exactly the same flow on our side - interesting to know that it's FLV as well.
    My problem remains, though: in iOS 8, if I play a sound (via MP3, SWF, etc) and then check the mic, all further sound in the application stops indefinitely until I close/reopen the app. Since we need to record audio at various times in the app, this will cause a major problem for our users!
    I've added a bug in the hopes that someone can verify the problem: Bug#3801262 - Requesting microphone access in iOS 8 (beta 5) terminates all further audio
    Thanks!

  • Air 3 + FMS 4.5 + HLS = iOS app play live video? h264+aac?

    OK, I tried before with air 2.6-2.7, a live video app VP6+MP3 to the AppStore and it got rejected, because of the http-live-streaming requirement.
    So today, I installed FMS 4.5, and created stream h264+AAC, to the rtmp://myserverip/livepkgr  with stream: mystream?adbe-live-event=liveevent
    I tried openning it on iphone safari with this url and it playes with default player: http://myserverip/hls-live/livepkgr/_definst_/liveevent/mystream.m3u8
    Then I tried with same url in my iphone app (Air 3.0 sdk) to open the stream and it doesnt work, I tried f4f and f4m extensions, dont work.
    What is the URL I have to load from my app as3 to load this HLS stream into my Air3 iOS App?
    I read somewhere now it is possible, or is it not possible yet to make app that plays HLS now?

    OK, I just made it work (kind of) with StageWebView. In a way with the iphone default player it is working smoothly with h264 video and AAC audio.
    - Is this the only way to bring HLS (http-live-streaming) live video to the  Air3 sdk based iOS Apps? I looked through the HLS and HDS documents, it doesnt say anything about how to load the stream into AS3 code with rtmp://ip/live/stream kind of URL.
    - Is there any live tv apps approved to Apple AppStore with this StageWebView implementation? I am worried that that it will rejected, because it is basically just loading a html page.
    Appreciate the help in advance.

  • Air 3.3 and background ios apps

    Hi All
    I cannot find some coherent information on this so I am asking here.
    I need to write an iOS app that needs to perform a webservice call every x minutes to update the slqite db on the device, even if the application is not running in the foreground.
    From google what I could find out was that iOS will only allow your app to run a small time after closing(to finish an upload etc).
    e.g. "AIR does not provide support for this iOS background processing model":  http://www.adobe.com/devnet/air/articles/considerations-air-apps-mobile.html#articleconten tAdobe_numberedheader_5
    but then later " applications may now support location updates and networking in the background": http://forums.adobe.com/message/4380335http://forums.adobe.com/message/4380335
    Can I do what I need in Air 3.3+ an iOS 5.1+ ?
    Thank You

    Some of the statements in this thread are no longer true, or need to be updated.
    Here is a recap:
    As of AIR 3.9, background execution will work on iOS+Android with render mode set to 'direct' ( which implies that you are using Stage3D ).
    For background execution to work in iOS, you need:
    to set NativeApplication.nativeApplication.executeInBackground = true, in your as3 code somewhere ( note: strangely, background exec on iOS has worked for me in the past even by not doing that ).
    to add in the iPhone section of your app manifest ( *-app.xml ):
    UIApplicationExitsOnSuspend = false
    UIBackgroundModes = audio ( and/or location, or some other background mode ).
    a good excuse / reason :  since battery-gate on the iPhone4, Apple has  tightened its policies regarding background execution.  For example:  last time I tried, setting UIBackgroundModes=audio was only allowed if the app was intended to play a sound persistently in the background ( not occasionally, such as an alarm clock sound ).
    For local notifications, I recommend Distriqt's local notification ANE ( Android+iOS), since it's the ony one I know which uses the AlarmManager api on Android ( Koesler's Android Local notif doesn't last time I checked ).  This means that on Android, the local notification can be scheduled for a later time ( same as iOS ), and will fire EVEN if the app is either minimized or has been closed properly ( meaning closed by the OS, or by the user via NativeApplication.nativeApplication.exit() -- note: force-stopping is the exception and cancels scheduled notifications on Android ).  You can also have the local notification play a custom sound which is up to 30 secs long ( mp3s on Android / cafs on iOS).  Sound will be audible on both platforms, even if the device is suspended.  This is ideal for an alarm-clock, for example.  The downside of local notifs is that they don't execute code, per se, however they can pass a data payload ( text ) back to the app, if it is running ( even if minimized ), which a handler can receive to do stuff.

  • How would you capture AIR audio on iOS (inside ANE)?

    Hi! I'm wondering what would be the best way to capture AIR app audio on iOS.
    I was able to capture video with OpenGL(that was tricky), also I'm able to do microphone capturing, both from ANE.
    Now I'm wondering how does AIR do audio output on the native level (iOS). What API does it use... From that I might be able to understand how to capture the audio. I know that there are different audio "pathways" from my limited iOS understanding, like Remote IO, or AVFoundation - but I'm not sure how/if its possible to capture from AVFoundation if its that. I know there's a way to capture from Remote IO.
    In general, I know it is possible, I'm seeing frameworks being able to capture audio on iOS just with a single ANE...so its only about figuring out "how".
    To clarify: I'm looking to capture realtime audio output from an AIR app.

    I'm trying the log and transfer method with Pro Res 422 HQ at the moment from material from a Panasonic SD5. For some reason FCP cannot mix down the 5:1 sound properly and you get channel 1 being 5 times as loud as channel 2. HOWEVER using Clip Wrap and again transcoding to Pro Res 422 HQ, seems to be able to mix the 5:1 to stereo, perfectly.My problem is Catch 22, I am often told to film in nasty places hence the need for tiny AVCHD cameras. Other programmes can work with these files like Pinnacle and FCE, however they do not have the Pro Res 422 HQ codec for exporting, that I must deleiver on, so I am having to work with FCP.Looks like Clip Wrap seems to work quite well....so far, but I haven't tested it properly yet.

  • AiO Remote iOS app -scanning A4

    I have a Photosmart 5515 All in One printer and have been using the iOS app AiO Remote app to scan in some A4 pages. I set the app to scan to a document and also the page size to A4. Looking at the resultant document it has scaled the the document down. It has centralised the document but you end up with margins of a couple of inches all round.
    Has anyone else noticed this?
    Does anyone know how to overcome this?

    Hi Rturner003,
    Welcome to the HP Support forums.  I understand that you are encountering difficulties when scanning A4 documents with HP's All-in-One Printer Remote app.
    I did some testing on this with an iPad and 3 different ePrint capable printers and each time I was able to recreate it. However that doesn't mean we are kippered.  I have included a link to a post on the forums and the key part for you to get your A4 scanned document to print the document as you require, please follow step 3 after you have scanned the image. The key is to pinch the image to the size you would like.
    Regards,
    Happytohelp01
    Please click on the Thumbs Up on the right to say “Thanks” for helping!
    Please click “Accept as Solution ” on the post that solves your issue to help others find the solution.
    I work on behalf of HP

  • Can I use iCloud storage for iOS apps?

    Hello,
    I'm trying to work out if it's possible to use iCloud to save/load data across devices with iOS apps created using Air.
    I know there is a lot of talk about now meeting the Apple data storage guidelines eg http://www.saumitrabhave.com/2011/11/air-ios-solving-apps-must-follow-ios.html
    What I can't understand is if I actually want to use iCloud to save data a user has created in my app (ie condition 1 of the storage guidelines - user generated data, cannot be re-created by application).
    If I was to save this user data to the <Application>/Documents directory...
    a) would it be backed up by iCloud and meet Apples requirements?
    b) if my application was installed on another device is there any way, using Air/AS3, to know that a file has been updated and read the file?
    Please let me know if this doesn't make sense... still trying to get my head around how it all works.
    Thanks.

    More details are available at http://blogs.adobe.com/airodynamics/2012/03/05/app-compliance-with-apple-data-storage-guid elines/

  • HP ePrint iOS app no longer finds Photosmart C4780 after app update

    I have an HP Photosmart C4780 connected through WiFi to my network but sadly it's not supported by AirPrint on iDevices.
    So, I was using HP ePrint Home & Biz iOS app (version 4.1) which was very useful for me as it found the printer and allowed me to print from my iPad/iPhone. 
    Today I updated the app on my iPhone to version 5 (now simply named "HP ePrint" on the App Store) and after the update, the new version doesn't find my Photosmart C4780 anymore. I did the Activation thing on the iPhone, as it was requested to refresh the list of printer on my network in the All tab, but after Refresh no printer is found.
    Still I have the old 4.1 on my iPad (and hopefully in my iTunes library) and the printer is located, I assume, through mDSN as it shows the name specified for this setting.
    So, question is: Did you dropped support for Photosmart C4780 on 5.0 release of HP ePrint iOS app? If so, why did't you informed this appropriately on the app update text description in the App Store? A message like "some printers may not be supported anymore" would have been helpul.
    If HP ePrint should find Photosmart C4700 series printers and this is an issue, how should we proceed from here?
    Thanks.

    WilliamBPS, 
    I was not informed that support was removed from the app for certain printers. It may have been lost in the transition to the new updated app. I will deffinitly pass this information along as it is very important that the app supports as many printers as it can. I'll go ahead and take note of your printer model. If I find anything out about this, I'll try to give you an update in this thread. 
    -------------How do I give Kudos? | How do I mark a post as Solved? --------------------------------------------------------

  • Sync iOS Apps to iTunes - Questions on how exactly this works...

    I'm going to put my questions up top, but my understanding of the current system is below, and may be relevant to the questions, if you'd like to read through it.
    How can I back up / restore a SINGLE app, including its data (e.g. a game save file), to either iTunes or the cloud... or anything else for that matter. Does syncing an app to iTunes serve this purpose?
    What IS the purpose of syncing an iOS app to iTunes? Does this sync include the data stored on my iOS device? For example, if I have a game in which I've made progress, is this progress stored on both my iPhone and my Mac once I've synced the app to iTunes?
    If data IS synced along with the app, how is this data managed? Say I have two iPhones, both with the same game but different progress in each. If I sync iPhone A with iTunes, then sync iPhone B, will iPhone A's data overwrite iPhone B's? Or are there two versions of this app floating around on my mac?
    If data is NOT synced along with the app, why on earth would I want a bunch of huge storage-hogging iOS apps that are identical to what I could download from the App Store taking up GIGABYTES of space on my MacBook's SSD?
    And finally, should the answer to question 4 be "there is no reason to store 42GB worth of useless apps on your 256GB SSD alongside your already gigantic iOS device backup files," how would I go about removing these apps stored in iTunes without iTunes trying to delete them from my iOS device every time I want to sync some TV shows or podcasts?
    My Understanding So Far:
    Of the many things Apple has addressed and improved upon over the years, backing up iOS app data has strangely not been one of them. As I understand it, the only way to back up an app, including its data (e.g. the save data for a game), is to do a FULL backup of the ENTIRE device. The only way to restore an app, including the data that you backed up, is to restore the ENTIRE device, all other apps included, to a previous state.
    The driving force behind these questions is that I'd like the option to delete an app from my iPhone when I'm finished with it - but I'd also like the option to re-download it in the future and pick up where I left off. In a perfect world, all these apps would automatically sync through iCloud or GameCenter, or at least have that option to "upload to iCloud" or "restore from iCloud." Even with these apps, I'm not entirely sure where the backed up files exist - somewhere on my iCloud drive separate from my iPhone backup, photos, contacts, etc? Is there a way to see a list of apps that are storing things in my iCloud drive, and even manage this data?
    So if I wanted to back up an app's data that does NOT automatically back up to iCloud, it seems my only option would be to install one of the many 3rd party Mac <-> iOS data transfer apps, and copy the contents of the "Documents" folder to a designated directory on my Mac. Then I could delete the app off my iPhone. Say in the future I re-download the app - I'd use the same data transfer app to copy the backed-up data to the re-downloaded app's Documents folder, and we're back in business. The only downside is that if it's been a while and the app has undergone updates, this backed-up data might be corrupt or no longer relevant. Plus, it's kind of a hassle.
    When I discovered iTunes was syncing my apps to my Mac, I thought it might be serving as a way to back up my apps, data included, to my computer. Okay, it seemed like a little overkill to sync the whole app along with the data, but when I discovered that you could UPDATE the apps within iTunes, I thought apple had solved the problem of storing backed-up data for out-of-date versions of an app - simply update the app in iTunes, it does what's necessary to your backed-up data, and when you want to put the app back on your iPhone, voila! Your old data's there, AND you've got the most recent version! But apparently this is not at all how iTunes app syncing works.
    As I NOW understand it, when iTunes "syncs" an app to your Mac, it includes only the app's core data - the same as if you'd just downloaded it from the App Store, and it does so for EVERYTHING you've purchased, ever, whether or not it's on any of your iOS devices. I can see how this could be convenient if you live on a farm and want to restore an old app to your iPhone without an internet connection, but I don't think it's worth, unexaggerated, a FIFTH of my hard drive. Worse, I can't figure out how to get rid of them.
    TL;DR
    So, if you're still with me, what is the purpose of iTunes App Sync, and if it's as useless as I think it is, how do I get rid of it for good?

    You can upgrade to Snow Leopard and skip over Leopard, and only upgrade to Lion later if wanted/needed. snow Leopard specs/requirements below.
    http://store.apple.com/us/product/MC573Z/A?fnode=MTY1NDAzOA
    Stedman

  • Is it still possible to create a 32-bit only iOS app?

    With the latest AIR release (17), is there any way to still create a 32-bit only iOS app for testing on the iPad 1? It's currently not possible to install an app with 64-bit support on an iPad 1 to test the app. My understanding, however, is that Apple will do something on their end that will allow apps submitted to the App Store (with 64-bit support) to still be downloaded and installed on an iPad 1. Having a way to test on the iPad 1 before submission to Apple would be nice.
    Is there a compiler switch or something that can be used for this purpose? If not, could such a switch be added easily? If we had such an option, we could continue testing on and supporting the iPad 1. Being in the education market, this is kind of critical to us.
    Thanks,
    Chris Sheffield
    Read Naturally, Inc.
    www.readnaturally.com

    Because an app built with 64-bit support *cannot* be installed on an iPad 1 device for testing purposes, whether using iTunes or Xcode. It simply doesn't work. This is the message generated by Xcode:
    This is when trying to install an app built with Flash Builder 4.7 and AIR sdk 17 beta.
    As I stated before, my understanding is that Apple will still allow installing apps on an iPad 1 through the App Store, but *only* through the App Store. In my opinion, this is too late. We really need a way to continue testing on the iPad 1, if at all possible. That's why I'm asking if there's a possibility of adding a compiler switch of some kind that would allow building 32-bit only apps, for testing purposes only.
    Thanks.

  • Is there any downside mixing Objective-C with C++ for iOS apps?

    I'd like to use C++ since it's fast and more dynamically in memory reference.
    Is there any downside mixing Objective-C with C++ for iOS apps?
    When googled for info, I only found tutorials about how to let xcode compile Objective-C with C++.
    Thanks for help.

    hokanst wrote:
    Both Objective-C and C++ are (more or less) extensions of C.
    C supports manipulation of pointers and casting of pointers, this implies that both Objective-C and C++ will be able to manipulate C data like arrays, structs ...
    Objective-C has classes like NSData to read/write blocks of bytes from/to file and to access ranges of bytes when the data is loaded into memory.
    C++ probably has similar classes (I'm not well versed in C++ so I don't know).
    If you want to look into using C++ you will probably want to look at Objective-C++, the link below has links to docs on how to use C++ with Objective-C:
    http://stackoverflow.com/questions/3684112/what-is-objective-c
    Thanks for the info, NSData does what I need.
    A replied in the link also mentioned that he's using C++ in his application too. As long as I'm aware of memory management (prevent memory leaks, etc) as @disguise said, it should be fine.
    @etresoft indeed, but C is the base language of ObjC, there are ways to deal with.

  • Help! On ios app store, in featured I accendently tapped app starter kit and I can't get out!

    Help! On ios app store, in featured I accendently tapped app starter kit and I can't get out! I closed the app out of mutlitasking, hit the featured button multiple times, but nothing happened! There's not even a back button! I can still see top 25, search, updates, but not see featured, genus, new,etc
    HELP!!!!!

    what mac os x are you useing.

Maybe you are looking for

  • Problema with web services over ssl

    I'm trying to consume a web service that require ssql. i enabled ssl debug, but i can't understand what's wrong. :-( keyStore is : keyStore type is : jks keyStore provider is : init keystore init keymanager of type SunX509 trustStore is: C:\Arquivos

  • How to find out which C library I am using?

    On my Solaris 9 UltraSparc system, % echo $LD_LIBRARY_PATH /opt/gcc/3.4.4/lib:/opt/glib/2.12.1/lib:/opt/gnome/lib:/opt/openssl/0.9.7g/lib % /usr/lib/libc.so usage: ld.so.1 [-e option,...] dynamic-object [object args,...] On my Solaris 10 x86 system,

  • JSP page fails to load completely ....

    Hey guys, I am working on a webapps on J2EE and Struts, and we use Oracle application server 10g to deploy the webapps. The problem of a page fails to load completely (loaded probably 10% and stopped) comes from one of the users which implements a co

  • [SOLVED]Trying to use Marathi language for typing using ibus

    Namskar to all, I'm using a plane install of Arch (no testing or something) regularly updated for last eight months or so. I'm using XFCE and Slim. I wanted to use Marathi language for typing in Libreoffice. After wiki search installed corresponding

  • How do I upgrade from Photoshop Elements 11 to PSE 12 (student edition)

    How do I upgrade from Photoshop Elements 11 to PSE 12 (student edition)