IPhone SDK - test for sound input availability?

Should one try to determine if the device has a microphone available before calling AudioQueueNewInput and AudioQueueStart? I didn't see any mention of this requirement in the Audio Queue Services Programming Guide. (But in ancient MacOS history, one used to at least check the gestaltSoundAttr for the gestaltPlayAndRecord flags before trying to use the Sound Manager...)
I have some audio queue input code which seems to work on the SDK simulator; what will happen if someone tries to run this code on an iPod Touch, which doesn't have a mic (AFAIK)? And if someone attaches a mic to the iPod dock connector, can this be detected and used?

Good Question. I did just that. It seems that the iPod touch thinks that the input device is present and the call to AudioQueueStart returns 0. Good or bad, I don't know. I assume that this function should trigger the callback function to the delegate, but it only works in the simulator. This can be seen with the Speak Here app that is posted for examples. The debugger console shows a call to updateUserInterfaceOnAudioQueueStateChange when recording begins and when recording ends. On the iPod touch the call to the delegate is only done when recording stops.
I would also like to know how to test for an input device.

Similar Messages

  • Using internal modem for sound input

    This is possible in OS 9 using the Sound control panel- I use it for recording surveys I do over the phone. However, it would be nice to use OS X since I do everything else with that. The only options in the Sound pane are Internal/External microphone and "Sound Input", whatever that is. Any ideas? Thanks!

    Quick google search brought up this site: http://www.blackcatsystems.com/software/audiocorder.html
    You could give that a try.

  • IPhone SDK - Ideas for pop-up menus

    I have a screen where there are quite a few items which are of the multiple-choice type. In other platforms we use a combo box (pick lists) to do this.
    On the iPhone SDK the only thing that comes close is the UIPickerView which is too heavy IMHO.
    Currently i am using a full screen pop-up with a UITableView inside it for the menu items. It is functional but not cool.
    I guess i could create a view which is rendered as a pop-up and add it as a subview to the parent and make it behave like a pop-up menu.
    Has anyone tried do implement one? I would greatly appreciate your ideas on this.
    Thanks,
    -TRS
    -TRS

    "redstonegirl" <[email protected]> wrote in
    message
    news:eo0dfm$k4r$[email protected]..
    > I'm new to this, and I'm wondering if it is suggested to
    use this drop
    > down for a side menu bar. I am considering doing this
    but my menu must be
    > on the side.
    Yes, once you master the tutorial on creating these type of
    menus, you can
    have them as dropdowns, or flyouts (as they are commonly
    called when
    attached to a vertical menu system).
    Nadia
    Adobe® Community Expert : Dreamweaver
    Tutorials |SEO |Templates
    http://www.DreamweaverResources.com
    http://www.perrelink.com.au
    CSS Tutorials for Dreamweaver
    http://www.adobe.com/devnet/dreamweaver/css.html

  • Trying to test for null input

    I am trying to get some input from a user using:
    String name="";       
    BufferedReader in = new BufferedReader(
        new InputStreamReader(System.in));
    name = in.readLine();Let's say the user inputs nothing other than the enter key, how can I test for this so that I can write output for it?
    In Python, one would use something like:
    if not name:
         <then do something>Thanks,
    Harlin Seritt

    Thanks for the help. When I try it with an empty
    string test, nothing happens. However, the test of
    name.length() works perfectly. Thanks!
    Harlin SerittI'm guessing you tried this, right?
    if (name == "") ...
    That's not the way to compare string values. The == operator only compares object references when comparing 2 objects. It's an extremely common mistake.

  • Is the iphone sdk only for MAC OSX

    I was wondering if the iphone sdk is only for Mac OSX and if it there is a way to get it for Windows XP

    The SDK is only for Intel Macs running at least 10.5.2. It is not possible to run on other systems. Sorry.

  • G4 and microphone suitable for sound input port

    I'm looking into getting started with podcasting and I need help with selecting a microphone. I'm on a G4 desktop machine with a sound input port, any suggestions as to the tech spec or manufacturer of a suitable microphone would be most appreciated.
    Thanks.
    G4 desktop   Mac OS X (10.4.6)  

    Hi, Neil -
    This Apple KBase article provides some info with regard to microphone selection -
    http://docs.info.apple.com/article.html?artnum=18275
    Scroll down the article to the G4 section that matches your G4 model.
    Many users have gone to using the Griffin iMaic adapter, since it permits a wide variety of micophones to be used. There's a link near the bottom of the above article to Griffin's iMic page.

  • 975x Sound Input problems

    I recently build a new computer using the MSI 975x mobo.  The only problem is, I seem to have some issues reguarding sound input.
    All the sound features seem to be working except for sound input.  In Sounds and Audio Devices, I have full access to sound output and all the different volume controls and advanced features.  All is well here.  But when I change it to sound input I run into my problem.  In the Master Volume Control on Input all volume controls except Master are greyed out to me and can not be changed.
    In properties, the advanced button for input (where you can find the useful feature of mic boost) is also greyed out.
    I am running the bios off the CD and the latest sound drivers.  Is this a known issue and does it have a fix?

    Quote from: Yoshiro on 31-August-06, 13:20:15
    I recently build a new computer using the MSI 975x mobo.  The only problem is, I seem to have some issues reguarding sound input.
    All the sound features seem to be working except for sound input.  In Sounds and Audio Devices, I have full access to sound output and all the different volume controls and advanced features.  All is well here.  But when I change it to sound input I run into my problem.  In the Master Volume Control on Input all volume controls except Master are greyed out to me and can not be changed.
    In properties, the advanced button for input (where you can find the useful feature of mic boost) is also greyed out.
    I am running the bios off the CD and the latest sound drivers.  Is this a known issue and does it have a fix?
    Are you wanting Sound Capture via CD/DVD or Mic? Are you running 6.1 or 8.1 Speaker setup?

  • Sound input in menu bar

    Hey all, I searched and couldn't find this, but is there anyway to have the sound input pref displayed on the menu bar, like how volume control is...but for sound input? Any help would be awesome, thanks.
    JCV

    My error. Apparently, not. However, http://developer.apple.com/documentation/QuickTime/RM/MusicAndAudio/Sound/rmSoun d/chapter1_section1.html might give you some information.

  • Edirol UA-25EX Sound Input not working after 10.6.6 upgrade

    Hello,
    I am using an Edirol UA-25EX sound card for sound input (mike) and output.
    Since I upgraded to 10.6.6, sound input is not working anymore.
    I tried to unplug / replug. I tried to reboot. I tried to uninstall and reinstall Edirol's driver for Snow Leopard.
    Nothing worked. Any help ?
    Thanks
    Seb

    By switching the sampling rate at the rear of the device, unplugging and replugging it, I manage to make it work again
    Strange
    Seb

  • Which version of iPhone SDK is available for MAC OS 10.3.9

    Hi,
    I want to develop an application for iPhone using my MAC OS 10.3.9 version.
    Which version of iPhone SDK is available for MAC OS 10.3.9?
    Can I install and work with iPhone SDK 6 or 7 version on MAC OS 10.3.9.
    Regards,
    Punit

    but the installation steps of SDK says that it can be installed on MAC OS 9.3.x also by customizing it during installation for the MAC OS 9.3.x.
    If possible, could you post a link to where this information is.
    OS 9 does not have a version 9.3.x so I am not sure what you are referring to unless that was a typo and you meant 10.3.x?
    I think you might get better support in the Developer forum. If you don't receive any other response here in this topic perhaps posting there might attract more knowledgable SDK users.
    littleshoulders
    Message was edited by: littleshoulders
    Message was edited by: littleshoulders

  • Looking for older version of iPhone SDK

    I have a Mac mini OSX version 10.5.8.
    I'd like a version of the iPhone SDK that will run on this.
    Does anyone know where I can find it?
    Thanks.

    If it is an Intel with 1GB of Ram you can buy SnowLeopard to upgrade the OS. If it has 2GB of Ram and a Core2Duo Intel, you can then buy Lion ( from within Snow ) to upgrade 10.6.x to 10.7.x from the MacAppStore ( part of SnowLeo's 10.6.6 free update ).
    Xcode v4.1 itself is freely available ( from the MacAppStore)  and you can make and freely distribute Mac OSX apps with it, but you can only install/test/submit ios-apps to Apples Appstore if you get a paid subscribtion with Apple.
    Leopard is a dead OS for doing developing. ( and also in general soon , the ppc part of it is end of life ).

  • I would like to play music from my iphone 5s on a sound bar with an iphone 3 dock. Is there an adapter available that will play audio please?that will play audio please

    I would like to play music from my iphone 5s on a sound bar with an iphone 3 dock. Is there an adapter available that will play audio please?

    The genuine Apple adapter works for me, most cheap knockoffs do not support sound ,it is usually in the micro print at bottom of the ebay offerring
    It is pricey by comparison but it works and the knock offs usually don't pay the patent  licence fee hence they guess the technology that is in the lightning plug
    and charge a minimal price

  • Where to download iPhone OS image for testing?

    I have no idea where to download this iPhone OS disk image for my iPod Touch that plan to be used for testing...
    "Download the iPhone OS Disk Image (.dmg) from the iPhone Dev Center for the Apple device you are using."

    My understanding is that the iPhone OS 2.2 beta is not necessarily available to everyone. If you've been accepted as a beta tester it will be the second area on the iPhone Dev Center after logging in (the first area is titled "Apple Developer Forums Beta", the second "iPhone OS 2.2 Beta Downloads", the third "iPhone OS 2.1 Downloads". If you're only seeing the 2.1 downloads then you're not part of the beta program. In this case, the iPhone firmware can be updated via iTunes, but only to the current version (2.1) and you'll need to wait until the general release of iPhone OS 2.2 and upgrade as normal.
    rob.

  • I have an iphone 2g unlocked for tmobile.  For the past 2 years it has worked fine then out of no where I get this message "your selected cellular network is no longer available" and the service cuts in and out all day.  It can't find tmobile on my phone?

    I have an iphone 2g unlocked for tmobile.  For the past 2 years it has worked fine then out of no where I get this message "your selected cellular network is no longer available" and the service cuts in and out all day.  It can't find tmobile on my phone for some reason but for 2 years previous it could no problem?  tmobile says it is a problem with my phone and not their service.
    Any ideas what to do?

    I would just explain that this just started happening, that nothing has changed on the phone, that it is an original iPhone and I wondered if they are implementing a change in coverage with their Edge network in my area.
    If you restore your phone, you will be given an option to back up your phone at the beginning of the process (see step 6 here: http://support.apple.com/kb/HT1414).  You will be given the option to restore to that backup at the end of the restore process.  Your messages are stored in the backup so restoring to the backup will return the messages to your phone.  Be sure to import your photos and videos to your computer (see http://support.apple.com/kb/HT4083) and back up your contacts somewhere before restoring your phone as these sometimesget lost in the restore process.

  • I have a new iPhone 5C, have the sounds alerts set up. But I'm not getting sound alerts for new voicemail, only the red circle on the screen.  How can I make the sound alert work?

    I have a new iPhone 5C, have the sounds alerts set up. But I'm not getting sound alerts for new voicemail, only the red circle on the screen.  How can I make the sound alert work?

    I have had this same problem for weeks now with my 4S.  I just got a new 5S after being extremely frustrated and the same thing - no sounds.  After searching posts all over, I couldn't find a solution. I just told my friend of the issue and he asked "Do you have the Do Not Distrub on?"  I didn't even know such a function existed.  Upon looking that was exactly the issue.
    To resolve, go to Settings> Do Not Disturb> Manual.  If it is green, turn it off.  You will now get phone calls and text alerts.
    This functionality is also on your quick access utility menu (slide up menu).  I assume this is how it was enabled on my phone.
    I will post on other sites since I searched for weeks for this solution and didn't see it anywhere.  Good luck!

Maybe you are looking for

  • IPod Video anomaly - please help if you can

    Hey, anyone else have this problem? - I have a 30GB iPod video, brand new. During the most recent/its first software update, iTunes froze. I gave it a cautious 10 minutes to see if it would work out, but I eventually had to close iTunes in the task m

  • I just got a new hard drive, iCloud only remembered a handful of my music...

    I just got a new hard drive, iCloud only remembered a handful of my music and, I don't know how to get the music from my iPhone back into my iTunes library. I want to put new music onto my phone and, I want to make some new playlists and edit some mi

  • SQL Expression Validation

    I created a validation and choose 'SQL Expression' as the type. And i put the following in the Validation Expression 1: Select 1 from Employee where ID = :P20_ID what i want to do is to check if the employee id is existed or not. If yes, it will give

  • Need Oracle 10g & 10g AS advice in Delhi

    We have a developed a MIS software related to HARD/Road/Bridge/Building with Inventory and project monitoring. The Software is complete as per Client Server Architecture. Presently we have Oracle 9i , Windows NT/2003 Server, 32 bit . We require to mi

  • Installation CS3 and trying to get past upgrade check

    Im doing a reinstall of my CS3 package on a new computer. I get everything installed and almost running but then get a window which is called upgrade check. I cannot seem to get past this step due to having to provide serial numbers i don't have. I d