Flash Microphone Recording Bug with Flash AS3 – Mac Pro and Mac Mini

While working on a Flash AS3 site recently, we’ve encountered an odd issue where Mac Pros and Mac Minis didn’t seem to be registering sound via the microphone. Things did seem to work fine though on Windows machines, and also Macbooks and Macbook Pros. Very odd indeed.

We found through much investigation that this is because the Microphone.getMicrophone() method required it be sent -1, which is undocumented in the Flash CS3 help. It is however documented in the livedocs for the method : http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/media/Microphone.html#getMicrophone() .

One thing to note though, through testing we noticed that calling the method with -1 caused the Windows machines to not record properly. Macbooks and MacBook Pros still worked with -1. Windows seems to prefer that you call the method with no argument. So to enable both platforms, it’s best to do an if statement to check which platform the client flash is running on, and then run the appropriate code.



You should follow me on twitter here.

Share this article :
  • Twitter
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • MySpace
  • Reddit
  • StumbleUpon
  • Print
  • RSS

No Trackbacks

You can leave a trackback using this URL: http://blog.untitledfornow.com/2008/07/28/flash-microphone-recording-bug-with-flash-as3-mac-pro-and-mac-mini/trackback/

One Comment

  1. Thanks for sharing this, this has been bugging for the better part of 1.5 hours. cheers.

    Posted October 7, 2008 at 2:25 pm | Permalink

Post a Comment

Your email is never shared. Required fields are marked *

*
*