How do you toggle a microphone directly between enhanced and non-enhanced?

Apparently mixing calls between Microphone.getMicrophone() and Microphone.getEnhancedMicrophone() on the same device doesn't work very well.  Take the following code:
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
               xmlns:s="library://ns.adobe.com/flex/spark"
               xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600" creationComplete="onCreationComplete()" click="Microphone.getMicrophone().setLoopBack(true);">
    <fx:Script>
        <![CDATA[
            import mx.controls.Alert;
            private function onCreationComplete():void
                Microphone.getEnhancedMicrophone().setLoopBack(true);
        ]]>
    </fx:Script>
</s:Application>
You will be able to hear yourself speak at first, but as soon as you click the app, you will no longer be able to hear your voice.  I have also seen this sort of thing in other scenarios.
To make a long story short, if you call getEnhancedMicrophone() for one device, then try to call getMicrophone() for that same device, the device will stop providing any audio input.  The same is true vice versa.  However if you call getEnhancedMicrophone() for one device, then getMicrophone() for a different device, then come back to the first and call getMicrophone() for it, the device will work just fine.
Why?  Is there any way to just toggle between enhanced and non-enhanced settings for the same device, without reaching out to an unrelated device?  Thanks!

On your Microphone reference you have these constants you can set your options to:
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/media/MicrophoneE nhancedMode.html
As you can see there, MicrophoneEnhancedMode.OFF disables enhanced mode. You would set your Microphone references .mode property to equal that to disable enhanced, or use one of the other relevant options to enable it. Thus, you should always use enhanced so you can toggle it.

Similar Messages

  • How do you generate multiple random numbers between 1 and 49

    I am new at mac programming and I want to make an iPhone app with the free SDK. What I would like to try is a random number generator. I imagine it as when the user clicks a button 6 random numbers from 1 to 49 would appear in a label or another control. If someone could please give me the code that would place these randomized numbers in a label I would greatly appreciate it. I know how to link all the controls together, I just need the code. Thank-you to anyone that can help!

    semi-sudo code goes here
    --prepare and array which will have number from 0 to 49
    --loop thru the array like this
    int i=0
    for (i; i<=49; i++) {
    int a=arc4random() % 49] ;
    int b=arc4random() % 49];
    --here exchange the objects so that they are shuffled
    [myArray exchangeObjectAtIndex:a withObjectAtIndex:b];

  • How do you easily switch Bluetooth headset between iPhone and MacBook Air

    I Have a Bluetooth headset that can pair between my mac and my iPhone individually.  However I only want my phone when I'm out and when I get home, id like to click the Mac and pair the headset without having to set the Bluetooth into the "searching mode".
    Wondering if anyone else is having this problem.  

    For this to work the Drafts Mailbox should be set to live on the server, not locally.
    Check in Settings > Mail, Contacts, Calendars > [Your iCloud account] > Mail > Advanced > Drafts Mailbox

  • How to transfer saved details on BB between BB and non BB devices

    Hi Support. Well, how to copy phone memory details (address book contacts , messages, bookmarks, calendar, tasks, memopad, etc...) to a non BB device to 100% make accessible on both devices.&amp;lt;br&amp;gt;Regards..

    Marwan_bs wrote:
    can BB backup files be explored in order to manually access the desired category(ies) to select the requested details to copy&paste them on the non BB device? By the way, i tried Magicberry but file parsing is failing.
    Natively, the backup file is not usable by anything but the RIM software...it's sole intended purpose is as source for restore to another BB. 3rd party apps can parse it...perhaps you need to seek other alternatives. If you search this site, I'm sure you will find more choices.
    Marwan_bs wrote:
    - a backup convertor should resolve that request but if conversion, as you said; wont give 100% same result ?!?!?!?!?!
    I do not understand that statement...if the database you desire is included in the backup file, then the data you desire should be there...you just have to extract it with a 3rd party app that works adequately for your purposes.
    Marwan_bs wrote:
    - to get BB content details on Outlook 2007, this request defining settings in order Office 2007 Application totally gets BB saved details. so, is their a Defined Settings pack to download and install to properly authorize device or plz type selected options location for Outlook2007- ex: outlook 2007 window front bar menu\tools\options\mobile notifications\etc... to define settings.
    I don't understand that statement. But perhaps these may help:
    KB12268Synchronization support for BlackBerry Desktop Software for Windows
    KB03315 How to setup organizer data synchronization using BlackBerry Desktop Software
    Good luck!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • How do you connect a microphone to a Mac?

    How do you connect a microphone to the Mac?  I'm trying to record vocals onto Garage Band.  I tried to use an adapter (XLR to MONO 3.5 mm) to connect directly to the port on the side of the MacBook Pro.

    I prefer USB mics - a really cool and nice one that I used to have was the Blue Snowball, available at Amazon for a great price. It got lost in a move but I intend on getting another.
    Clinton

  • How do you set up the passkey between the Mac & Palm?

    Hi all,
    I need help with a couple of things relating to bluetooth and Mac;
    a) when I try to HotSync the Palm TX and iBook(OS 10.3.9) using BT, I get an error message saying "can't initiate Hotsync because port is in use by another application'.
    b) how do you set up the passkey between the Mac & Palm? I can't work out how to input anything on the Palm at the step where it asks for the passkey.
    thanks
    iBook 1.2GHz   Mac OS X (10.3.9)  

    Palm has this to say about the issue:
    'Unable to initiate HotSync operation because the port is in use by another application.'
    This error can occur on the Palm™ Zire™ 72 handheld after setting up a Bluetooth® HotSync® connection. When you configure the Bluetooth application on the handheld for synchronization (or when you set up a Bluetooth connection in the Connections preference screen), the HotSync button in the Writing Area may try to launch a Bluetooth connection, regardless of the connection selected in the HotSync application on your handheld. The HotSync icon in the Writing Area will always try to connect using whatever method was last used. When you set up Bluetooth HotSync, it used Bluetooth, and now tapping the icon in the Writing Area will result in a Bluetooth connection.
    The issue arises if you launch the HotSync application on your handheld, and select the "Cradle/Cable" option from the pulldown menu, and then tap on the HotSync icon in the Writing Area. Your handheld will still try to perform a Bluetooth HotSync operation, because that was the method last used. You will see an error message, and won't be able to synchronize.
    Unable to initiate HotSync operation because the port is in use by another application.
    Why does this happen?
    Because your handheld was set up for Bluetooth, tapping the HotSync icon in the Writing Area should launch a Bluetooth HotSync. But if you select a different method in the HotSync application, your handheld will try to connect using that method as well. The HotSync application is unsure which method to use, and you will see the error message.
    What should I do?
    If you see this error, here's how to correct the issue:
    1. Launch the HotSync application on your handheld.
    2. In the pulldown menu at the center of the screen, choose the connection method by which you wish to synchronize.
    3. Then, instead of tapping the HotSync icon in the Writing Area, tap the large onscreen HotSync icon in the middle of the HotSync application screen.
    4. Do this every time you wish to synchronize using Cable/Cradle.
    5. Whenever you want to synchronize using Bluetooth, exit the HotSync application and tap the HotSync icon in the Writing Area.
    6. This will allow you to keep multiple connection methods for synchronization, and the flexibility of alternating between them.
    For more information on such issues, perform a keyword search here, in the Palm Macintosh Support area:
    http://www.palm.com/us/support/macintosh

  • How do you Change Group Sort Direction using Report Client

    It looks like there should be a sort direction property on the ISCRGroupOptions object but there is none. So how do you set the sort direction of the group?

    I tried that and it did not work. Here's the code to change the grouping, note I also change the associated sort object. I did notice that if you go into the crystal reports designer and bring up the Record Sort Export and select the group's corresponding sort that the Sort Direction radio buttons are disabled. The question is how to change the sort direction shown on the Change Group Options dialog?
            public bool GroupModify(short GroupIndex, string TableName, string ColumnName, SortDirection SortDirection)
                bool result = false;
                if ((_ReportClient != null) && (GroupIndex >= 0) && (GroupIndex < this.GroupCount()))
                    CrystalDecisions.CrystalReports.Engine.Group docGroup = _ReportDocument.DataDefinition.Groups[GroupIndex];
                    ISCRField field = _ReportClient.DataDefController.FindFieldByFormulaForm(docGroup.ConditionField.FormulaName);
                    if (field != null)
                        Group group = _ReportClient.DataDefController.GroupController.FindGroup(field);
                        if (group != null)
                            Group newGroup = group.Clone();
                            newGroup.ConditionField = FieldGet(TableName, ColumnName);
                            if ((newGroup.ConditionField != null) && (_ReportClient.DataDefController.GroupController.CanGroupOn(newGroup.ConditionField)))
                                _ReportClient.DataDefController.GroupController.Modify(group, newGroup);
                                result = this.SortSet(TableName, ColumnName, SortDirection);
                return result;
            public bool SortSet(string TableName, string ColumnName, SortDirection SortDirection)
                bool successful = false;
                if (_ReportClient != null)
                    ISCRField field = FieldGet(TableName, ColumnName);
                    if (field != null)
                        ISCRSort sort = _ReportClient.DataDefController.SortController.FindSort(field);
                        if (sort != null)
                            _ReportClient.DataDefController.SortController.ModifySortDirection(sort, CRSortDirection(SortDirection));
                return successful;
            public int GroupCount()
                int count;
                if (_ReportClient != null)
                    count = _ReportClient.DataDefController.DataDefinition.Groups.Count;
                else
                    count = 0;
                return count;

  • TS3297 how do you contact iTunes support directly?

    how do you contact iTunes support directly?

    To Contact iTunes Support...
    Use this Link  >  Apple  Support  iTunes Store  Contact

  • How do you get FaceTime to work between two Mac's with the same email address? Thanks, Mike

    How do you get FaceTime to work between two Mac's with the same email address?

    I would like to know the same thing.  How does facetime work between a MacBook Pro and an I Pad that run off the same email address/mac id

  • How can you use one NetStream to publish video and audio from another NetStream in AS3?

    Let's say one of your client programs in AS3 is able to receive live video and audio from a NetStream and play it on the screen.  How could you make it also take that video/audio stream that it's receiving, copy it over into another NetStream, and publish it elsewhere?  I need to know how to do with this regardless of whether RTMP, RTMFP, or some mixture is involved.  The reason why the stream needs to be relayed this way is a real long story, but it's necessary in this particular case. Thanks!

    RTMP is TCP, which has higher overhead and latency because it guarantees packets are delivered (handshaking, causing latency and overhead). It also doesn't allow you to share connections directly between clients forcing the server to do all the work.
    RTMFP uses UDP, which is a choice protocol for streaming video because it's the opposite. It's lossy which decreases latency and overhead from no retransmissions and most importantly (in some applications) allows you to connect directly from one Flash Player to another Flash Player (p2p) so the server overhead is dramatically reduced. The server is only required to negotiate the initial connection and then it's up to the clients to continue to facilitate that.
    How you code your one to many or many to many relationship broadcast network will be based entirely on which of those you choose.
    URLStream is very common to use in p2p. Here's an older Adobe article on p2p and an alternate quick old video tutorial (FP10) as a quick simple example of p2p over RTMFP you can view the source of.

  • How do I sync a PDF file between iPhone and iPad in iBooks?

    How do I sync a PDF file between iPhone and iPad in iBooks?

    If the PDF supports it then you can try opening the PDF in iBooks on your phone and use the 'share' icon (the square with the upward pointing arrow) to email it to yourself (some PDFs a protected and don't support emailing) and use 'open in' in the Mail app on your iPad to copy it to its Mail app.
    Or you can connect the phone to your computer's iTunes and do File > Devices > Transfer Purchases to copy it over to your iTunes (that should copy PDFs and/or epubs that are in the iBooks app, not just ibooks) and if using a Mac with Mavericks or Yosemite on it then do File > Move Books From iTunes in its  iBooks app, and you can then sync it to your iPad.

  • How do you get firefox 4 to save tabs and windows and restore them? Don't say set preferences to open them on startup or use restore previous session under history; those do not work. Or is it no longer possible to save windows and tabs?

    Question
    How do you get firefox 4 to save tabs and windows and restore them? Don't say set preferences to open them on startup or use restore previous session under history; those do not work. Or is it no longer possible to save windows and tabs?

    '''IT'S A EASY AS IT SHOULD BE.'''
    This is essentially paulbruster's answer, but I've added the steps some might assume, but which aren't so obvious to those of us who are new at this, like me.
    This solution might ''appear'' to be long and complicated, but after you follow the directions once, you'll find it's quick, clean, and simple. Almost like they designed it this way.
    # If you haven't already, open a bunch of tabs on a few different subjects.
    # Click the List All Tabs button on the right side of the tab strip.
    # Select Tab Groups.
    # Create a few groups as described [http://support.mozilla.com/en-US/kb/what-are-tab-groups#w_how-do-i-create-a-tab-group here] , i.e. just drag them out of the main thumbnail group into the new groups they create.
    # Now click on any thumbnail in any new group, but not the original big default group you may have left some tabs in.
    #A regular Firefox window will open, but'' only the tabs in that group will be visible.'' You also now have the Tab Groups button in the tab strip.
    # Right click on any tab, and there it is: Bookmark All Tabs. Click on it in the list of options. Or you can hit Ctrl+Shift+D instead and go straight to the dialogue box from the tab without any clicks. But don't go looking for this familiar option anywhere else, 'cause it's not there.
    # Now pick an existing folder or create a new one just like you would have before and '''shlpam!''' there they are. New folders are supposed to end up in the Unsorted category all the way at the very bottom, but for some reason mine show up at the bottom of my last sorted category.
    # DO NOT CLICK THE UPPER-RIGHTMOST X to close this group of tabs. This will close ALL of your tabs in all groups, currently visible or not. At least it asks if you're sure first. Instead, click your new Tab Groups button to return to the Boxes 'O Thumbnails window, and click the X in the group box you just bookmarked.
    # Click on another thumbnail to repeat the process with another group, or click on a thumbnail in the big default box to return to the original FF window. You can also click the Tab Groups button at the upper right, or Ctrl+Shift+E, which will also get you ''into'' the Boxes 'O Nails window ''from'' FF.
    # So now when you reopen FF after shutdown, simply select your folder from your Bookmarks and Open All in Tabs. '''Just like paulbruster said. '''

  • How do you share thousands of pictures with text and captions outside of PSE?  (PSE 4)

    One of my dad’s retirement passions is family genealogy and old family pictures.  Several years ago I gave my family PSE 4.0 for Christmas so that we could each have backup copies of our dad’s pictures.  Usually once per year, I made backup copies of everything and emailed the DVDs to my brothers and sisters.  Everyone knows the basic PSE 4 functions and share our dad's enjoyment with the old family photos.
    My problem is that my dad is running out of pictures to scan.  He wants to “share” or “show” his photos with others so that he can “borrow” their photo albums in order to scan their photos.  He plans to attend a hometown high school reunion later this fall.  He hopes to "collect" photo albums from cousins and classmates.  I have been struggling with this for several days without any good ideas.
    The scanned pictures lack any text (added as a layer?) or captions.  Creating a slideshow (on my dad’s computer is slow).  Also, a slideshow doesn’t let others select individual pictures to save from the slide show
    He has old pictures pre-PSE 4 that allowed him to add captions directly to the picture when it was scanned.  I never liked this approach as it "destroyed" the actual picture but these old pictures are more easily shared as individual pictures.
    How do you share thousands of pictures with text and captions outside of PSE?  Can you save or export a composite picture with all the layers?
    Thanks in advance for your help and replies.

    I think it is one of the printer option screens that gives me the choice of tabbed 4x6. All of the choices specifiy HP or Other so I am pretty sure it is printer software that offers me this choice.
    Make sure your image has a 4x6 aspect ratio. I have been quite happy with the tabbed 4x6. Just need to remember to load the paper with the tab last.
    So, in elements you set to 4x6, in printer options you should be able to choose 4x6 tabbed paper.

  • HT5029 How do I link my subscribed calendars between icloud and my ios devises on a windows pc?

    How can I link my subscribed calendars between icloud and my ios devises on my windows 7 pc?

    I am having a problem that I cannot find addressed. My old computer TOTALLY died - it won't even turn on to deauthorize, back-up, and all those other steps given to transfer my music. All the info I have found, says you can authorize up to 5 devices etc, but so far, nothing is working. I just want to transfer my library, and don't have hours to spend on this. I have searched and searched, and really sincerely need help, and please - only helpful comment - yeah, obviously I am missing something some where. If anyone can offer some kind advice, I would REALLY be grateful!
    compaq   Windows XP  

  • In Pages 5.2.2: How do you go from 1 column to 2 and keep them on the same page?

    In Pages 5.2.2: How do you go from 1 column to 2 and keep them on the same page?

    Sorry, I tried to say your answer solved my question, but I guess I told it that my response to you solved it. Now that I liked it, the solved option doesn't appear.

Maybe you are looking for

  • XSLT to remove duplicates while concatinating

    My XML looks like folloing: <?xml version="1.0" encoding="utf-8" standalone="no"?> <BATCHES> <item> <Material>1000000079</Material> <Description>330 Bulk</Description> <Tank>T123</Tank> <Batch>2013225287</Batch> <Quantity>510</Quantity> </item> <item

  • Orange UK skype over wifi

    Is anyone using Skype on an Orange UK iphone. I'm just trying to establish whether i would be able to use Skype over wifi before purchasing one. Read some reports that it's barred and the sales reps in the Orange store would only confirm that Skype i

  • Can I clean the clear ink head for mx7600 printer?

    Clear ink tank indicator displayed so replaced it with genuine PGI-9 clear tank per instructions and same problem plus new B300 error code.  Figured must've been bad new tank so ordered another and same problems.  Ran all clean and deep clean utiliti

  • Premiere pro Crashes

    Every time I try to load video files, in this instance prores, into Premiere Pro CC the program immediately crashes.  However, when I load these same files into Premiere Pro CS6 there is no problem.  Computer specs. Windows 7 pro 3rd generation i7 pr

  • RPUCOB02, No Entry for form type C9

    Hi All Recently we applied the HRSP 43 for ECC 6.0. When we run the program for generating the COBRA letter for the first time after the HRSP's, we are having an issue. When we select an employee qualifying event and click print spool we get an error