List sound devices in AS3

Is it possible to list Sound output devices on a system.  I'd like to be able to list Sound output devices and play a sound to more than one sound device at the same time.  I.e. Internal speaker and a USB headset.
I know you can capture sound from multiple input devices using Microphone.names and Microphone.getMicrophone(index);
Can I play the sound to multiple sound devices?

It's really context. If you're on a website, you can't access a webcam or microphone at all unless the user allows you to in their preferences, and they are prompted when you do so.
In an AIR application I would like these advanced techniques but as you pointed out yourself with the link, the way the OS handles device addressing under the hood can likely change, so they don't advise even a 'workaround' for choosing where to send audio.
On the example you listed above, while you're free to implement things like that, is it really a good idea to have a user have headphones on while you still intend them to hear (headphone muffled) sounds coming out of the speakers? I'm not sure why you'd like a setup such as that other than clearly separating communication from the application. I never came across a need such as this however. If I can pay attention to a game and 30 people on a Ventrilo server at the same time perfectly well, I don't think users should expect to listen to both the speakers and the headset. That's just my $0.02.
As it is now, you're free to tinker with Adobe Native Extensions to see what added behavior it can extend AIR to regarding a desktop application.

Similar Messages

  • Lost sound devices now blue screen of death when updating creative drivers.

    I have an XPS with windows 7, dont k now what the sound card is, I have factory installed software for Creative X something extreme, and Realtex.
    Now I had been trying to get sound via an optical cable to an AV amp with no success. I had tried disabling and re enabling sound devices, then I tried updating the drivers, realtex was ok but the Creative drivers caused the blue screen of death with the message IRQL Not less or equal"
    I tried all options in device manager including rollback, every time I try anything I get that blue screen of death, whats more, in "Sounds" in the control panel, I have lost two of my sound device options that do not appear even with "show hidden devices" so I now have no sound.

    Hi Nambo,
    Device manager should list the exact hardware in your desktop. But normally, integrated audio jacks will appear on the same backplane as other motherboard components, while an add-on card will have its jacks in an expansion slot. So you should know whether you have integrated or add-on.

  • Internal microphone on Compaq NX6310 does not work and I can't locate it on my list of devices.

    Internal microphone on Compaq NX6310  does not work and I can't locate it on my list of devices. What is the problem and how can I correct it? Thanks, Brian

    I seriously doubt that Apple will accept your iPad for service/exchange since it sounds like it's a real basket case.  If they
    Do accept it, the cost would be 99USD, but if it is a 64Gb model it will cost 199USD.  The best thing for you to do is to take it into the nearest Apple store to see if they will accept it for repair/exchange.  I can tell you that they definitely will not give you an iPhone in exchange.

  • Sound device deleted by mistake

    my sound device i think has been deleted by mistake, how do i go about reinstalling it so i can play music files etc? is there an online download i can use?
    thank you!!

    Hello
    Usually after restart the sound card should be detected and installed automatically. If you start the unit what happen in device manager?
    The sound card should be listed again.

  • Sound devices disappeared

    I plugged in some headphones that had a microphone built into it.  It made my sound preferences go wonky.  My Built-In Output has disappeared on the list of devices. For a time, I had to manually control the use of headphones as an "Output" and switch back to "Input". Now I absolutely cannot get any sound. Help?!?

    Do you see a red light shining out from the headphone jack? Even if you don't, try connecting a set of headphones & disconnecting them a few times - there's a switch in there that might have gotten stuck.
    ~Lyssa

  • K9VGM-V no sound device in WinXP

    Got my new machine all running and installed but can't get the sound device to show in Device Manager. On logon, PNP trys to install the device but only lists it as a "PCI? device". When I try to manually install the driver, the RealTek Audio drivers and codecs do show up as installed, but they're not associating with the mysterious PCI device. I've flashed the BIOS with the latest version and installed all the newest drivers for the chipset, etc., but still can't get the device to show up. I'm thinking I've messed up some switching thing on the motherboard, but I can't figure out what. The sound card isn't listed anywhere in the BIOS so it must be hardware???
    I appreciate your help.

    Hey, thanks, BK. The patch was the ticket! I didn't need KB888111xpsp2 because it was included in SP3, but KB835221 was the missing piece. As soon as I got that installed and the machine rebooted, the new RealTek HD Audio drivers loaded right up. Works like a charm, now! Thanks loads! 
    Quote from: BOSSKILLER on 30-December-07, 06:43:42
    You have troubles installing onboard audio right?
    Have you installed Realtek drivers from here? --> http://global.msi.com.tw/index.php?func=downloaddetail&type=driver&maincat_no=1&prod_no=260
    If no change install those patches: https://forum-en.msi.com/index.php?topic=113078.msg846427#msg846427
    then retry with realtek drivers installation

  • New 945GCM5, unable to install sound device

    Hi all, please help,
    I used the parts on the list below for a friends PC whose old motherboard was fried by power fault, some parts used, some new.
    Anyway, I installed all the parts into his case along with the old hard drive. Formatted and installed Windows XP and then started to install the drivers from the CD for the Intel chipset, Intel onboard VGA drivers, Realtek NIC and Realtek HD Audio driver.
    All the drivers installed and recognised the devices except the sound drivers. No matter what I do I can't get windows to install the drivers, it just won't recognise the drivers as belonging to the device.
    The device shows up in Device Manager as PCI Device with the yellow exclamation mark to show a problem, when I disable the onboard sound in BIOS it disappears so it is definitely the sound device (onboard Realtek ALC888 chip, I believe).
    What I have tried so far,
    1. Tried install from CD.
    2. Downloaded latest drivers from MSI, and tried install.
    3. Downloaded latest drivers from Realtek, and tried install.
    4. Tried to update driver from driver tab of device in Device Manager with the above drivers.
    5. Formatted and reinstalled XP over again, and tried 1 to 4 again.
    Is there a problem with the motherboard? Am I wasting my time?
    Is there a way to force the install of the drivers?
    Sorry if I've gone on a bit too long! Any help would be much appreciated, I've spent ages trying to fix it!
    MB: 945GCM5 V2 (MS-7267 v4.2)
    CPU: Intel Celeron D 352+ (3.2GHz, 533MHz FSB, 512Kb L2 Cache, LGA775)
    RAM: Crucial 2X512MB, (PC2-4200) 240 pin DIMM DDR2
    PSU: Casecom ATX500W
    HDD: Samsung SP1203N (master on IDE1)
    DVD: NEC DVD/RW ND-3500AG (slave on IDE1)
    BIOS: Latest Version H.70 (no settings changed)
    OS: Windows XP SP3, v.3264
    No overclocking

    Quote
    OS: Windows XP SP3, v.3264
    Your problem may have to do with SP3.  There are known problems with SP3 and KB88111 / Universal Audio Architecture (UAA) High Definition Audio class driver.
    Try this:
    http://www.msfn.org/board/XP-Service-Pack-3-support-t108378.html&st=20&p=720616#entry720616
    If that doesn't work, try again with SP2 only.

  • Plug-in and Removal of sound devices

    Hi,
    We're having a problem with USB sound devices. When our application is running, we can't determine if the user has plugged in or removed a sound device. After the first call to AudioSystem.getMixerInfo(), it always returns the same list of devices.
    Is there any way to get the list of devices that are currently available?
    Here is some example code to illustrate the problem:
    import java.io.IOException;
    import java.util.List;
    import java.util.Vector;
    import javax.sound.sampled.AudioSystem;
    import javax.sound.sampled.Line;
    import javax.sound.sampled.Mixer;
    import javax.sound.sampled.SourceDataLine;
    import javax.sound.sampled.TargetDataLine;
    public class DeviceEnumerator {
        private static List<String> enumerateDevices(Class<?> lineClass) {
            List<String> ret = new Vector<String>();
            for (Mixer.Info mixerInfo : AudioSystem.getMixerInfo()) {
                Mixer mixer = AudioSystem.getMixer(mixerInfo);
                Line.Info lineInfo = new Line.Info(lineClass);
                if (mixer.isLineSupported(lineInfo)) {
                    ret.add(mixer.getMixerInfo().getName());
            return ret;
        private static List<String> enumeratePlaybackDevices() {
            return enumerateDevices(SourceDataLine.class);
        private static List<String> enumerateCaptureDevices() {
            return enumerateDevices(TargetDataLine.class);
        private static void findAudioDevices() {
            List<String> playbackDevices = enumeratePlaybackDevices(), captureDevices = enumerateCaptureDevices();
            System.out.println("Found " + playbackDevices.size() + " playback devices:");
            for (String s : playbackDevices) {
                System.out.println("  " + s);
            System.out.println();
            System.out.println("Found " + captureDevices.size() + " capture devices:");
            for (String s : captureDevices) {
                System.out.println("  " + s);
            System.out.println();
        public static void main(String[] args) {
            System.out.println("Press Enter to start ...");
            try {
                System.in.read();
            } catch (IOException e) {
                e.printStackTrace();
            while (true) {
                findAudioDevices();
                try {
                    Thread.sleep(2000);
                } catch (InterruptedException e) {
                    break;
    }

    850885 wrote:
    Is there any way to get the list of devices that are currently available?As far as I know, there's no way to "refresh" the list of devices available on the system...

  • How to set sound device(sound card)

    i have 2 sound cards one - integrated on MB and one on PCI.
    I want with Java to use in some cases first in some cases second. How could I set one of them for usage?
    Am I need JMF or ther e is any other general setting to change preffered sound device(with java of course) for whole system(windows in my case)
    thank you Stoyan

    As I know you should add the devices to the jmf registery and after that to make that your application will choose the preferred device list.

  • Removing Unwanted Sound Devices

    Hi People,
    I had software for Epson data projectors installed which added EPSON Projector Audio to the Sound Devices list in the Sound Preferencepane. I have used the uninstaller to remove the software, but the Sound Device is still listed. I am unable to locate where this file might be so I can remove it manually. Any ideas?
    Andrew

    Then you may find using the freeware, Easy Find, for this. Usually much better than Spotlight for finding such files - you will find it at VersionTracker or MacUpdate.

  • Should my Computer shows as a device on the Control Panel\Hardware and Sound\Devices and Printers.

    Should my Computer shows as a device on the Control Panel\Hardware and Sound\Devices and Printers.
    Should it? I have an HP p6653w w/ a c7280 all-in-one printer.
    My computer is showing as a device with 'trouble' and it says it has NO driver for it.
    What would happened if I removed that device? Would I again lose the ability to print ??

    Do you have Windows 7?  If so it is normal for the computer to show up in the "Devices" list.  I would suggest you do not delete it.
    Bob Headrick,  HP Expert
    I am not an employee of HP, I am a volunteer posting here on my own time.
    If your problem is solved please click the "Accept as Solution" button ------------V
    If my answer was helpful please click the "Thumbs Up" to say "Thank You"--V

  • [SOLVED?] KDE4: Removed sound devices popup appears when sfx is played

    edit: Marked as solved because this problem hasn't occurred for a while. Will be re-opened if it occurs again.
    When doing something that triggers a KDE desktop sound effect, such as emptying the trash or searching for something in Kate, this popup appears:
    This happens only once per boot. After closing the window it doesn't reappear until the system is rebooted. All sounds work well, without any problems. ALSA is used, no Pulseaudio or other sound servers.
    Any ideas what to do? Should I click "yes" when it wants to "forget" sound devices? There are multiple reports about this problem at the KDE bug tracker but I'm not sure if this is a bug or just a configuration error.
    Last edited by ormu (2015-04-07 16:14:23)

    There were some duplicate devices listed in the Phonon settings panel so I let it forget those. Now it only complains about one device.
    This doesn't have duplicates and it won't go away even if I let it forget it. It appears again after reboot.
    Last edited by ormu (2014-12-08 11:50:44)

  • P43 Neo F - no sound device

    I have a P43 Neo F board , XP  proffessional SP3
    Recently my sound device (Realtek) has dissapeared and there is no sound in the computer.
    In the Device Manager ther is a PCI device with yellow question (?) mark and no drivers installed.
    Under Details of the PCI I have VEN_8086&DEV_3A3E&SUBSYS_75191462
    From what I found  on the net this is a HD audio device - but I couldn't find drivers for it
    I tried to install/update drivers - but the system doesn't find them.
    Tried to reinstall Realtek driver - it didn't t change anything
    Upgraded Intel drivers - no success
    Please help  !!!

    Quote from: Svet on 13-April-09, 08:54:41
    Go to device manager, then expand "System Devices", and locate "MS UAA bus" Right click over it, then click "Disable".
    Reboot and enter in "Safe Mode", {hit "F8" just after bios post screen}
    Once done go to device manager then expand "System Devices", and locate "MS UAA bus"  Right click over it, then click "Un-install".
    Reboot PC, then run Realtek driver installation again.
    If problem persist use:
    >>> Unknown Devices 1.4.20 Beta with updated ID lists <<<
    Thanks Svet
    Still no solution ....
    But I don't see any "MS UAA bus" under the System devices
    What will be the effet of the "UKD_14-20_Beta_updated_july_08.exe " that you provided link to ?
    Computer Info
     Chipset:
     Computer Name: DAN-DESKTOP-MSI
     OS: Microsoft Windows XP Service Pack 3, v.5657 (OEM)
     Device Tree
     Other devices
     PCI Device
     Intel Corporation HD Audio Controller
     Micro-Star International Co Ltd (MSI)
     Windows Description - PCI Device
    * Hardware ID - VEN_8086&DEV_3A3E&SUBSYS_75191462&REV_00
    * Device Category (Class) - Other devices
    * Enumerator - PCI
    * Detected Chip Vender - Intel Corporation
    * Detected Chip Device - HD Audio Controller
    * Detected Vender - Micro-Star International Co Ltd (MSI)
    * Detected Device - <unknown, id=7519>
    * Device Status Flags - Detected, Unknown, Present, Not Phantom, Category Visable

  • My sound device does not work after yesterdays update

    after the last update my sound device is out of system.

    Welcome to the Apple Community.
    Try the following steps, check whether things are working after each step where appropriate, before trying the next.
    Check AirPlay is turned on on the Apple TV (turn it off and on if it already is)
    Check that both devices are on the same network (Settings > Wifi, on the mobile device and Settings > General > Network, on the Apple TV).
    Restart the Apple TV (Settings > General > Restart).
    Restart the Apple TV by removing ALL the cables for 30 seconds.
    Restart your router. (Also try removing it’s power cord for at least 30 seconds)
    Restart your mobile device.

  • I am trying to delete audiobooks from i pod nano. a list of devices is supposed to appear on left of screen, it does not?

    I amtrying to delete books from my i pod nano. A list of devices is supposed to be on left side of screen, it is not.?

    Hello Pokeweed
    Depending on what view you have on is where your iPod nano will show up. If it is the new view, then it will be in the right hand corner next the iTunes Store button. If you have the sidebar enabled then it will be where you would expect it. If it is in neither spot, then check out the article below to get it to show up on your computer.
    iPod not recognized in My Computer and in iTunes for Windows
    http://support.apple.com/kb/ts1369
    Regards,
    -Norm G.

Maybe you are looking for