Currently Browsing: Code

Microphone bug in as3?

[UPDATE]

Ok, so it really is a bug,  Thnx Matt for the comment with the link:

“you need to pass a value of “-1″ to the getMicrophone() call to get the one you’ve chosen”

—-

Seems like there’s a bug in the As3 (or flash player 9) in the Microphone class.

I’m not able to switch between Audio-input devices using the Settings panel.
And Microphone.getMicrophone() always seems to get the First Audio-device,
and not the device the user has selected in the settings panel.

Try this:
do a Microphone.getMicrophone();
bring up the settings panel (through rightclick or code: Security.showSettings(SecurityPanel.MICROPHONE); )
switch audio-device.
Now, for me it’s still using the firts audio device, and NOT the one I just selected.

Can anyone confirm?

I’m using the latest Player. 9,0,64,0

Black Screen Visualizer for WMP

Last year I assembled my Media Center machine. Although I think the interface design is not optimal, I’ll never go back to having a separate TV, DVD an Audio System. One thing that bugged was not being able to turn off the monitor with the remote. When I’m playing music I don’t really need to see the mce interface. So this weekend I decided to figure out how to make a Visualizer plugin. I wanted to build a visualizer that visualizes… uhm .. NOTHING… Just a black screen so I won’t have to turn of my monitor.

So I downloaded the Windows Media SDK, read the help files and found a code sample. Unfortunately it didn’t work right away, because I’m using visual studio 2005. Searching msdn, I did find a way to convert the windowsmediaplugin wizard to VS 2005.

In the sample I just commented out the lines that did the visualizing, and changed the presets that came with it.
After building the solution, I got a dll that I could register on my MCE machine.

Sweet, now all it needs is some testing.