Microphone.addEventListener(SampleDataEvent.SAMPLE_DATA) Causes output volume to decrease

I would like to record sound from the microphone in AIR.
This is working, except that while recording, AIR reduces the volume of all playing sounds.
This volume reduction is triggered by
microphone.addEventListener(SampleDataEvent.SAMPLE_DATA, myFunction);
It should be noted that myFunction() can be completely empty. The output volume is still reduced.
How to reproduce:
// Start playing a sound
var url:String = "100Hz_44100Hz_16bit_30sec.mp3";
var urlRequest:URLRequest = new URLRequest(url);
var isound:Sound = new Sound();
isound.load(urlRequest);
isound.play();
// Set up the microphone
var microphone = Microphone.getMicrophone();
microphone.setUseEchoSuppression(false); // I have tried both ways.
microphone.setLoopBack(false); // I have tried both ways.
microphone.rate = 44;
// Start recording
microphone.addEventListener(SampleDataEvent.SAMPLE_DATA, gotMicData);
// The volume of 'isound' will now be reduced until the microphone listener is removed.
// Once the listener is removed, the volume of 'isound' returns to normal.
I do NOT want the volume of other playing sounds to be reduced while recording. How might I do this?
Note: I am using Windows 7.

I believe reducing volume on mic record is a Windows 7 feature and nothing to do with Air.
To disable this, take the following steps:
Click Windows button
Choose Control Panel
Choose "Hardware and Sound"
Choose "Manage audio devices" under the "Sound" heading
Goto the "Communications" tab
Set "When windows detects communications activity" to "Do Nothing"
Even though that setting says it's supposed to adjust volume when placing telephone calls using you computer, I have had it reduce volume in some programs when i activate the microphone.
Let me know if that works for you.
Edit:  Heh, was reading some other recent forum posts to see if there was anything else I could help with.  The thread "2 flash instances & Windows 7" currently a few below this one on the front page mentions this Windows 7 Feature, although it's causing a different issue for him.

Similar Messages

  • Microphone output volume adjustment?

    Hey all, i was wondering if there was a way to adjust the output volume on the microphone on the video recorder. It almost sounds like every time i use the video recorder, it records the audio as if the microphone was set to max volume or something. When i play it back its sounds like crap, especially if you try to record a live music show. Any help is much appreciated!

    In a word, no.
    If you have a Mac which includes iMovie, you should be able to use iMovie to make some adjustments to the sound.

  • Logitech USB headphones - microphone works but not sound output

    Seems like the sound output to my Logitech USB headphone has stopped. The microphone inputs but the sound output is blocked. Could be technical issue with the set but was wondering of anyone else has this problem after the last update to 10.14.0

    ChickInVici,
    Having similar issue with iPad 2.  No volume on Apps or Music (except when using headphones).  Just started happening after months of no issues.  Have reset/ restored with no solution.  Can you provide more detail with your solution?  I went to >settings>accessibility>voiceover.....but could not find headphones etc... what am I missing.  Could you be more specific on what you changed to resolve your issue.
    thanks

  • Output Volume On and Off Auto & sometime LOCKED!!!

    Hi,
    Facing a very strange problem...sometime i might not able to control the volume of MacBook Pro from the keyboard or even from the sound setting (in the system preferences), cause, it shown as LOCKED!!!
    2ndly, Sometime when i'm watching movie and doing music work, the output volume will On and Off automatically, i'm sure, i do nothing on the volume control and even the volume control from the keyboard as well...
    However i restart and configure from the system preferences...it can't Fixed!!!
    What's the problem and what's your opinion?
    Thanks and appreciate!!!

    Hi,
    Try resetting the PRAM and NVRAM
    Also, please add your Mac OS X version to your profile. Thanks. Click "My Settings" on the right side of this page.
    Carolyn

  • Output volume on my MacBook Pro is not working

    My output volume on my MacBook Pro is not working. When I go to "Settings", then "Sounds", then "Output", I can not slide the volume bar at all, or change it in the menu bar?

    See if a PRAM reset will solve the problem;
    http://support.apple.com/kb/HT1895
    Ciao.

  • Increasing Output Volume?

    Hello all,
    I have a 15" macbook pro that I purchased over the summer. I've noticed that my volume doesn't go nearly as high as my friend's macbook pro, and he has an 13" model that is older than mine. Is there any way I can increase my maximum output volume? I have already adjusted my sound settings in system preferences, but there is nothing to make it louder. Is there something I'm missing here?
    Thanks

    If it's iTunes you're listening to, make sure the volume slider in the iTunes window is turned up all the way, then use the master volume controls (the F10, F11 and F12 keys) to regulate the volume. If the iTunes slider isn't up all the way, it limits the maximum volume that you can get by turning the master volume up. At least this has been my experience.

  • Output volume

    I have to reset  the output volume in my System Preference whenever I restart my computer because it reverts back to some default setting whenever I restart. How do I change this setting?

    Thanks, your message did help and gave me a little bit more knowledge about the world of sound which is becoming more complex than I ever imagined.
    But I want more volume.....
    I have tried using the volume enhancer preset (hiFi) from the inserts of the output track and this has increased my volume, but my RMS is still only getting to around -14.
    Any ideas on how to get more volume anyone?
    And by the way, am I doing the right thing by using the output track to control my final volume output? I have found that the master volume fader on my TASCAM-428 will also define the final level of my mp3 bounces, and that they are basically interchangeable in terms of controlling output levels.
    e.g. if i have everything all the way up and then pump my master volume fader on the Tascam to full, my file will distort.
    Thanks in advance (hopefully).

  • Sound Output Volume Preference won't stick in newly reinstalled 10.6.8.

    I recently re-installed OS 10.6.8 (from the retail Snow Leopard Install DVD, followed by the 10.6.8 Combo Updater) to my 2006 iMac (version 6.1) 24". Ever since, whenever I re-boot, the output volume of the internal speakers is set to a reduced level. When I bring it up to the level I like - that's fine, but only for as long as the session. If I re-boot, the level is once again dropped down to the reduced level.
    I've reset the output level using the keyboard keys, and also in the System Preferences - nothing seems to stick. I've even plugged in a pair of headphones and set the output volume to be the same as my preferred speaker level, but still, nothing sticks.
    I can't find a preference file to delete that is specifically for Sound Preferences. I've used Cocktail to search for a corrupted preference file, but that finds nothing as well.
    How can I regain control of my volume setting so that it will survive a re-boot?

    I should have added that resetting the P-Ram didn't help, neither did an SMC Reset.

  • Audio output volume setting

    I'm trying this for the first time. I want to be able to record voice and instruments through a mic. When I open a new track, the output volume slider is 'greyed out", and I can't adjust it. I've maxed every other volume control I can find, but the output is muted when I play it back. Anyone else had this problem?

    I want to be able to record voice and instruments through a mic.
    if it's a regular mic plugged into the computer:
    http://www.bulletsandbones.com/GB/GBFAQ.html#micline
    the output volume slider is 'greyed out"
    what "output" slider are you talking about?

  • Applescript output volume consistently "missing value"

    It seems that the output volume returned by the "get volume settings" applescript call is consistently the "missing value".  Setting the output volume to a different value "works" -- that is, the effective volume is set to the value I specify -- but the value returned by applescript is still "missing value".
    For example, the following script
    display dialog "output volume = " & (get output volume of (get volume settings))
    set volume output volume 50
    display dialog "output volume = " & (get output volume of (get volume settings))
    gives me this dialog both times
    What's up with that?
    This is on Mavericks 10.9.0

    Yes, I discovered much the same thing.  If I have my system/default output device set to my headset, then I get the behavior I described.
    However, I also find that while the output device is "missing value" the other values, including muted, have proper values. 
    There is also no way to set the output device via Applescript (except by the distasteful method of poking they System Preferences GUI settings).  So there is no proper way of really controlling sound output via applescript.
    But thanks for the prompt response.  If only the Applescript documentation were complete in this respect (unless I missed it somehow).

  • I cannot access my output volume!!

    When i go to system prefrences the whole output volume is gray, it only works with speakers. please help im very frustrated!  Mac.OS.X version 10.6.8 it stopped working after i went on a plane ride and listened to music though headphones for 2 hours...please help and tell me how to fix it

    This might help - http://support.apple.com/kb/ts1574

  • Output Volume for recording

    I'm having trouble getting enough volume in headphones while recording. I have the output volume on my interface (M-Audio Fasttrack pro) all the way up, but when I adjust the mix on the interface to hear a good mix of both recorded tracks, and what is being recorded, the volume is too low to hear anything. The outputs on Logic are set as high as possible without clipping. I've even tried a separate headphone amp and its not enough. Its not like I'm hard of hearing, either... :. any suggestions?

    Rob Twardock wrote:
    I'm having trouble getting enough volume in headphones while recording. I have the output volume on my interface (M-Audio Fasttrack pro) all the way up, but when I adjust the mix on the interface to hear a good mix of both recorded tracks, and what is being recorded, the volume is too low to hear anything. The outputs on Logic are set as high as possible without clipping. I've even tried a separate headphone amp and its not enough. Its not like I'm hard of hearing, either... :. any suggestions?
    You need a dedicated mixing console to blend the incoming overdubs with Logic's playback.
    What model? What price? You decide this.
    Cheers

  • Bluetooth phone causes iPod volume to lower

    Has anyone experienced this?
    In the car I place my Treo 650 next to my iPod. Anytime the phone rings the volume on my iPod automatically lowers to around 40%. It only happens when the two are next to each other. It is very consistent.

    This is normal most phones especially GSM Cell Phones, are know to commonly cause the volume bar on the iPod to change at random when the phone is too close to the iPod.
    Regards--- Justin

  • IMac audio output volume

    got a 21.5 iMac late 2009 and noticed a huge difference in volume:
    -from headphone output sound at minimum is almost harmful and definitely too loud at mid position( I'm using same cheap headset as before )
    -from built-in iMac speakers volume looks normal (louder than with my g4 iMac, but never too loud).
    Tried with sound prefs but the difference remains.
    Is this normal ? I mean, in the new iMac the headphone output is (too) much better or there is a way to fix at the same level the two outputs ? or do I simply have a very Low volume from iMac speakers?(using headphones is now really fatiguing)

    Mac OS X and the iMac are keeping two separate sound output volume settings. So the volume setting for the built-in speakers is saved separately from the volume setting for the headphones.
    Just connect the headphones and set the volume as desired. Then, disconnect the headphones and set the volume of the built-in speakers as desired. When you connect the headphones, the volume will go back to whatever it was set at before, when you had the headphones connected. When you disconnect the headphones, the volume setting will go back to the previous setting for built-in speakers.
    If the above does not work as I described, try resetting PRAM
    http://support.apple.com/kb/HT1379
    Then, try it again.

  • OUTPUT volume resets to high after reboot

    I turn the OUTPUT volume down then shut the computer off but when I boot it up the OUTPUT volume is hi again. I have reset pram, repaired permissions and still the same.
    Must be a pref bad somewhere.
    There are no stuck keys on the keyboard

    It may be a bug, but it obviously does not affect everyone. It does not happen on my older Intel iMac. And there is a +Early 2009+ Mac mini in the house, 2.0 GHz (same as and in Dah•veed's profile); it does not happen on it either.
    When you did the test of setting volume low (or muted) with external speakers disconnected, and restarting with the external speakers disconnected, was the startup sound from the built-in speakers low (or muted), or was it already reset and loud. This will better determine when the volume reset takes place. If it's already loud, then it takes place during the previous logoff and actions that take place before restarting (or shutting down), or during the initial few seconds of startup (before the startup sound). If it's still low (or muted), then the sound volume reset takes place at some point after the startup sound, but before startup completes.
    As another test, if you set the volume low, then log out and log back in (instead of restarting), does the volume stay low or does it get reset to the higher volume.
    And as one more test, create a new admin user account in System Preferences Accounts pane
    http://docs.info.apple.com/article.html?path=Mac/10.6/en/8235.html
    Log out and log in to the new account. Go to System Preferences Accounts pane and set it for +Automatic login+ (If you don't use automatic login normally, then you don't need to set it). Now try doing the same test, except from this account instead of your normal account. Is there any difference in the volume setting being retained?

Maybe you are looking for

  • .m4r files sync but don't appear AND outlook contacts won't add to iphone?

    hi guys, This is my first post, made just a day after I got my iphone. Now don't get me wrong, i love the iphone, but i'm worried i might have to send it back due to 2 glitches: 1) I exported all my contacts onto my computer from my old k800i, then i

  • How can I use multiple iTunes accounts on one phone?

    I Have an iTunes account with iTunes match enabled. I've just moved in with my gf and want to be able to share music on our phones. I've enabled her computer and put my Apple ID in and I now have all her music on my phone (thanks to iTunes match) but

  • Movie with Photos

    I am creating a slide show of pictures for my friends wedding. I normally create the slide show in iphoto then export to imovie then export to idvd to burn. I want to create it more custom this time. I am attempting to put over 100 photos in imovie t

  • Problem in displaying customized flex window.

    0 Hi I've created a customized settings sub-window, with an AIR application and facing a problem in displaying it more than one time from the application, i.e for the first time i select option from context menu then the settings window is displayed

  • Cant open dreamweaver files! HELP!

    I have created a website with dreamweaver 8 and all has been going well this week. But today when i try and open the files, it quickley opens them then closes them immediatly. They open fine in safari and firefox, so i am totally confused. Any ideas