Expand my Community achievements bar.

Learn about Edge Delivery Services in upcoming GEM session

USB microphone not working with AudioPublisher

Avatar

Former Community Member

Hi,

I have a voice chat feature in my application, in which I use AudioPublisher and AudioSubscriber.

The code is almost identical to the Audio.mxml example coming with the SDK.

I have a 'start voice chat' button that starts voice chat.

The problem I'm having is that a Macbook's built-in microphone works fine,

while an external USB microphone doesn't.

I selected the correct Microphone from the drop-down menu in the 'Adobe Flash Player Settings',

and the record volume bar also properly shows a non-mute green bar.

The headset I'm using is MX500i from Plantronics.

I don't think there's any problem with my code considering that it works perfectly with Macbook's microphone.

It'd be great if anyone has a solution to the problem I have.

Thanks,

Juho

2 Replies

Avatar

Employee

Hi,

I have tested a similar scenario, and a USB mic did work for me on Mac. Are you trying to change your mic at run time ?

Can you provide more details, as to the LCCS SDK Version, Flash player version, Mac OS version, anf if possible the console logs and your code.

Thanks

Arun

Avatar

Former Community Member

I had the same problem. You need to check the device index of your USB mic.

In my case. I'm on a Mac OSX 10.6 system. I had four devices cataloged. With the last one being the USB mic.

Then set like so in your AS code audioPub.microphoneManager.micIndex = 3;

Remember, that the indexing is 0 based.

The sound framework make the assumption that the index is 0.

Hope that helps.