How to chang audio-output-device(s) in Windwos 8

Hi,
currently I’m working on an application that starts by changing the audio-output-device and ends with re-setting the old one.
On Windows XP I do this by changing the Registry-entry “Sound-Mapper” and it works quite well.
I hopefully assume it works on all Windows Systems from XP to Windows 7.
The background is that our program is supposed to play certain multi-channel sounds over an external USB-multichannel-soundcard and it should switch to that device on start. To actually play the sounds we use the AxWindowsMediaPlayer-Class
to integrate the Windows-Media-Player in our application.
However, on Windows 8, it is possible to set multiple Audio-Outputs and the Windows-Media-player has a setting to choose from them (under Options). I was unable to use the Registry-trick to switch the output-device and I could not find
a way to programmatically tell the AxWindowsMediaPlayer to choose the USB-soundcard as an output.
Is there a Way to programmatically(c#) ether change the audio-output-device(s) in Windos8 or to tell
AxWindowsMediaPlayer to use a certain device?
Thank you.

Hi Kristin,
I think your reply pushed me in the right direction.
The waveOutOpen-function is part of the
winmm.dll-API and I think, that API is the solution to my Problem.
Unfortunately I am stuck at this point. I tried mciSendString and mciSendComand. Both are cappable of playing sound, but I am unable to change the output Device.
This is my c# code to open a WAV-File via mciSendCommand:
MCI_OPEN_PARMS open = new MCI_OPEN_PARMS();
open.wDeviceID = 0;//this is somehow ignored
open.lpstrDeviceType = Marshal.StringToHGlobalAnsi("waveaudio");
open.lpstrElementName = Marshal.StringToHGlobalAnsi(@"test.wav");
IntPtr ptr = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(MCI_OPEN_PARMS)));
Marshal.StructureToPtr(open, ptr, false);
mciSendCommand(Convert.ToUInt32(textBox2.Text),               
MCI_OPEN,              
MCI_WAIT | MCI_OPEN_TYPE | MCI_OPEN_ELEMENT,              
ptr);
Afterwards I use mciSendCommand to start the playing of the sound, which works fine, but no matter what I enter in the “open.wDeviceID”-Line, I always get sound over
the default output.
I use waveOutGetDevCaps to get the number and kind of the output-Devices and this works fine.
Regards, Marc

Similar Messages

  • Changing audio output device for currently running program

    I'm not sure where to put this question, but all my searching hasn't seemed to find an answer...
    If I have a program running, iTunes, VLC, a game, whatever, and want to change audio output from say Line Out to Headphones, I have to restart the program for the change to take effect. Is this by design/normal or am I missing something somewhere?

    this is actually a quiet significant issue. There is no way in Flash to select the audio output device.
    Today  people have regular speakers and a separate headset. They all use the  speakers for music and the headset for voice. Skype i.e. has the option  to choose audio output device and its really handy, because
    you dont  have to bother to set the default device to the headset everytime you  want to use it.
    If you set the default device to the headset all other apps will send their audio  output to the headset - which is not what you want either.
    So people  really want to leave the default device set to the speakers and not to  the headset.
    Nokia did this for Java
    JRT 2.1 / Nokia UI API updated to version 1.4:
                AudioOutputControl extension for controlling which audio output device, for example the device loudspeaker or earpiece, is used to play back audio
    This really is an issue.

  • Changing audio output device

    Hi,
    I'm building an application that uses LCCS for video calls.
    We've encountered an issue that we couldn't find any solution for and we believe is crucial.
    Since the current version doesn't support AEC, all our users uses headphones to use the service.
    The problem is, that to the best of my knowledge, if you plug-in USB headset, there is no way to make flash switch to using them instead of the regular audio output. If that is true,this means that assuming a user has USB headphones, even if we will add a note in the application saying "use headset to reduce echo" - that won't help as the user has no way of using his headset with our application.
    Am i missing something? please tell me I am.
    Thanks,
    Itzik.

    this is actually a quiet significant issue. There is no way in Flash to select the audio output device.
    Today  people have regular speakers and a separate headset. They all use the  speakers for music and the headset for voice. Skype i.e. has the option  to choose audio output device and its really handy, because
    you dont  have to bother to set the default device to the headset everytime you  want to use it.
    If you set the default device to the headset all other apps will send their audio  output to the headset - which is not what you want either.
    So people  really want to leave the default device set to the speakers and not to  the headset.
    Nokia did this for Java
    JRT 2.1 / Nokia UI API updated to version 1.4:
                AudioOutputControl extension for controlling which audio output device, for example the device loudspeaker or earpiece, is used to play back audio
    This really is an issue.

  • How to install audio output device

    my computer said that i need to install audio output device and i did but it keeps saying failed to install and i don't know what to do can u please help me !

    audio output deviece is installd

  • How to change audio capture devices sample rate

    I am going to develop a online voice chat applet. Now everything works fine. But I didn't find anyway to capture audio in a lower sample rate. The default sample rate is 441000Hz. I am using MediaLocator to capture audio and pass it into Processor.
    MediaLocator ml = new MediaLocator("dsound://");
    DataSource ds;
    DataSource clone;
    try {          
    ds = javax.media.Manager.createDataSource(locator);
    } catch (Exception e) {
    return "Couldn't create DataSource"+e.getMessage();

    Use GSM format and do it with setting of BitRateControl. It is better than convert the sample rate of your capturing device. I suppose that you try to reduce load of network traffic with changing sample rate, right?
    Best regards from Germany,
    r.v.

  • Hi there, can anyone tell me how to make make Garageband ignore HDMI as an audio output-device on a 2013 Mac Mini? Now it keeps on prompting me: Do you want want to use the HDMI device (monitor without audio) for audio output? Thanks in advance, Grtz T.

    Hi there,
    Can anyone tell me how to make make Garageband ignore HDMI as an audio output-device on a 2013 Mac mini i7 using an Apogee jam as an input for bass and a Behringer USB DAC with RCA audio output? Now it keeps on prompting me: Do you want want to use the HDMI device (monitor without audio) for audio output? I'm also suffering massive audio lag issues with the Apogee jam after waking the mini from sleepmode, wich pretty much renders it useless.
    Thanks in advance,
    Grtz T.

    I think the easiest way to do this is to have the EyeTV app running in one user account and sent via HDMI to the TV, and use a separate user account for Screen Sharing. Both logins can be active at the same time and with Lion you can connect via screen sharing to which ever login you need.
    With regards to the Mac video resolution changing, when it is not the current input on your AV receiver. This is 'normal', if the Mac sees no signal it drops down the a lower level. What you need is to buy a HDMI Detective Plus which tricks the Mac in to always seeing a signal and hence it will not drop down the resolution. See http://www.gefen.com/kvm/dproduct.jsp?prod_id=8005
    The Mac mini does have an IR receiver. This can be used with the EyeTV app, iTunes, and similar. Yes I believe EyeTV would run for prolonged periods quite happily, it is has been around for a long time and had most of the rough edges polished off. However one issue you will have to deal with is that it does not automatically update its program guide data. For this you might have to write or modify an AppleScript. Elgato support or their user forums will be a lot of help.
    You can set EyeTV to convert recordings to an iTunes (Apple TV) compatible format and then delete them from EyeTV.
    The HDMI Detective should solve your handshaking problems.

  • Is there a way to have Firefox respect the default audio output device when it has been changed while Firefox is open?

    I have been a Firefox user for many years and I still use it as my primary browser. One problem that has bothered me for years is the fact that when Firefox is open and I change my default audio output device, Firefox doesn't respect that change and continues playing audio through the device that was originally being used. Even if you stop the audio and continue playing, the output device doesn't change.
    Is there any way this can be configured in Firefox? Now if I listen to music online (e.g. Soundcloud) I always use Chrome since it's respects the default audio output device change even while in the middle of playing audio.
    Reproduce:
    1. Start playing audio (e.g. from a YouTube video; HTML5 and Flash are affected)
    2. Change your default audio output device
    3. Audio will continue to play from original output device
    Thanks!

    This is the same issue that has plagued me for years. I always thought that this was a Flash plugin issue, but it does occur on HTML5 as well. A friend of mine verified that this does not occur in Linux, but only on Windows. It would be great to have this fixed, as it's honestly the only thing that's making me use Chrome all the time, as I don't want to have multiple browsers open.

  • How to change audio port output to input port on mac os x 10.9.2 to connect electric guitar on macbook pro for garageband

    How to change audio port from output to input port so that i can connect my electric guitar to play along with garageband. I couldn't the option to change it in my system preferences of sound as my mac os x is 10.9.2. So please help me!!!!!!!!!!!! I want to play electric guitar with my garageband so badly!!! :O
    Mac os x 10.9.2. ; Garageband 10.0.2

    There is no audio line input on your Mac, get a USB interface, get one that is specified for guitars.

  • I delete audio output device how to i installed plese tell me

    i delete audio output device how to i installed plese tell  me

    Hi,
    you need to download and install the driver from hp.com.
    Please visit www.hp.com/in and select suport & drivers>drivers & softwares> type the the complete model of your PC such as dv6-6100 dv6-3100 etc... select your computer model (if listed), or select the CTO(such as dv6-6100 CTO) model(which works for whole series) now select the OS you are running. you have the list of drivers for your PC.
    hope it helps, Good Luck !!!
    Regards,
    WW
    “I am an HP Employee“
    ***** Click the KUDOS star on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem***

  • How can i install my audio output device back

    my audio is not working it says "No Audio Ouput Device installed" but it was working perfectly fine the day before. PLease Help

    Re: how can i install my audio output device back
    earlier its working good but not now

  • How can you choose which audio output device to use?

    I currently have my system set up to have two different active audio output playback devices, Speakers and Headphones. By default, applications play on the default audio output device, which is set to Speakers on my computer. However, I am wanting to play iTunes on my Headphones output while all other applications are running on the default Speakers output. In Windows Media Player, there is a dropdown to select which output device the application streams to. Is there a way to make iTunes do this, either in the Preferences menu, by using a plugin, or installing a third-party application that overrides which output applications use?

    Under Utility you will find the Configurazione MIDI Audio.app  The name is in italian on my Mac but you should find it in your system language. The icon is a Piano Keyboard.

  • Is there no way to direct an AIR app's audio to different audio output devices?

    I'm needing to make a couple of our AIR apps select certain audio devices to send their audio output to, and last year, somebody mentioned possibly using native extensions to do this.  I had to start working on other things for a while, but I've come back to this (for the moment), and I've basically learned how to create native extensions.
    But so far, they don't seem to provide me any special access to anything going on under the hood of an AIR app.  When you stream live audio in through RTMP or RTMFP, the details of the audio are hidden from you.  There doesn't appear to be any place where you can actually access the audio bytes that are being sent over the wire.  You can specify a certain SoundTransform object for the NetStream to use, but that class is final and a vanilla Flash construct, so even if it may have a way to access the audio bytes, they're not acessible at all.
    It really looks like, when a NetStream object starts streaming in live audio, there is no way under the sun to access the audio bytes and direct them to a certain audio output device, with or without extensions.  Is this so?  It would be unfortunate if Adobe didn't allow this, even through native extensions.  Thanks.

    Couple quick thoughts..
    Limits are important. There's a large amount of work done to keep a clear separation between a users decision and a developers decision. For instance, you can't change a users default audio output because that clearly violates a users decision. That said, here's a whole mess of people debating the issue and actually eventually an undocumented COM API you can find that will actually let you do it in Vista/Win7 (but not 8), however don't expect that to be a 'good thing to do':
    http://social.microsoft.com/Forums/en-US/9ebd7ad6-a460-4a28-9de9-2af63fd4a13e/programatica lly-setting-the-default-playback-device-and-recording-device?forum=windowspro-audiodevelop ment
    You might want to get a beverage before reading that.
    Aside that, RTMP is secured, which is why you can't gain access to the bytes. The entire purpose of it is to assure media developers that their media can't easily be copied/stolen. Adobe doesn't document their method of securing streams but they do publish the RTMP specification. It's entirely possible for you to create your own RTMP server and encryption method while delivering a RTMP stream to custom client that you code yourself which can read the stream. Here's the spec:
    http://www.adobe.com/devnet/rtmp.html
    So I'd say it would be unfortunate if Adobe did give you access to the bytes. You might as well just hand users a mp3 of whatever song is playing because they would steal media left and right.
    That isn't to say you can't use a multitude of ways of getting the data going across the default output device. Plenty of apps (fraps/etc) capture video and mixed audio streams. But Adobe isn't going to give you the keys to the kingdom and let you decrypt their protected media protocol.

  • No audio output device is installed - Satellite C855D-S5950 - Windows 8 64-bit

    Toshiba laptop
    Model: Satellite C855D-S5950
    P/N: PSCBQU-03G03E
    OS: Windows 8 64bit
    RAM: 4GB.
    Hello,
    I have my friend’s Toshiba Satellite C855D-S5950 with Windows 8 (64bit) that about a year old.  Some months ago the sound stopped working.  He asked me to take a look at it.  I have researched this issue and found others have encountered his problem as well. 
    Currently, the sound icon has a red x, “No audio output device is installed.”
    Things I have tried so far to try to fix this:
    I went to the Device Manager > Sound, video and game controllers. I have "Realtek High Definition Audio" listed with the little yellow caution icons on them. I have tried to disable, then enable it.  I have tried to uninstall the sound driver from the Device Manager.  I would restart the laptop, and let the driver reinstall itself, to no effect. I have tried downloading the latest drivers from the Toshiba website. I have tried un-installing the driver while in safe mode from the Device Manager.  As well as from Programs and Features.   There were no positive change to the audio though, still the same message. The Realtek driver won't finish installing and throws the error: "Install Realtek HD Audio Driver Failure!! [Error Code: 0x000000FF]"
    I have gone to Control Panel > Sound, under both the Playback and Recording tabs, it says "No audio devices are installed."
    My friend was previously unaware of how to restart or shut down his Windows 8 laptop (as was I until I started investigating this problem for him).  I mention this because there are no useful System Restore points to go back to for him.
    I have also tried Using the Toshiba Application Installer as well to re-install the driver after un-installing the Realtek Audio driver from Add/Remove Programs.  I went to Desktop Assist >Support Recovery > Toshiba Application Installer.
    Realtek Audio Driver 6.0.1.6743
    It loads most of the way then I get:
    "Install Realtek HD Audio Driver Failure!! [Error Code: 0x000000FF]"
    I have also tried the following links for additional troubleshooting:
    http://forums.toshiba.com/t5/Audio-Sound-Knowledge-Base/Windows-8-Troubleshoot-no-sound-with-Windows...
    http://forums.toshiba.com/t5/Audio-Sound-Knowledge-Base/No-sound-from-speakers-or-headphones/ta-p/27...
    http://windows.microsoft.com/en-us/windows/no-sound-help#no-sound=windows-7&v1h=win8tab1&v2h=win7tab...
    http://forums.toshiba.com/t5/Audio-Sound/No-Sound-quot-No-Audio-Output-Device-is-installed-quot-Tosh...
    It was also suggested in the above thread I remove the Microsoft UAA Driver, but could not find this driver on my friend’s system.
    Plugging in headphones, toggling the speaker volume controls on the keyboard has had no effect.
    My friend has also misplaced his install discs, so I am looking for any solution which does not require the install discs.
    Any help would greatly be appreciated.
    Toshiba laptop
    Model: Satellite C855D-S5950
    P/N: PSCBQU-03G03E
    OS: Windows 8 64bit
    RAM: 4GB.
    Thanks in advance.
    -Tre

    Recovery media is created from the hard drive. You can make it using Toshiba Recovery Media Creator. You can also perform a full system reset to factory defaults using the information on the hard drive without using external recovery media. That sounds like the best course of action now. To do so, use Windows+C > Settings > Power > SHIFT + Restart > Troubleshoot > Reset your PC.
    - Peter

  • Error '' No Audio Output Device is installed '' on my hp pavilion 9502au laptop ?

    Hello , 
    It happened yesterday while watching a movie in VLC player ... It closed the lid of my laptop and my laptop went into standby ....
    Then I tried to open the laptop through pressing power button or mouse button. It didnt start. I had to remove  the battery and my laptop started , but i noticed a red x on my sound icon. when i took my pointer there , it stated '' No Audio Output Device is installed ''.. 
    Till now , I SWITCHED MY WINDOWS FROM X64 TO 32 BIT , DEVICE MANAGER SHOWS NO sound , video , controllers... manually installing a hardware display all devices of conexant but not mine.. all are video capture.... registry entries are ok , but no sound related registry .... windows services are ok.... drivers are not installing , as they cannot find the devices .. moreover BIOS is up-to-date.....
    GUYS , ANY HELP WOULD BE APPRECIATED.... 
    This question was solved.
    View Solution.

    Missing completely from device manager on an integrated component typically indicates a hardware issue.  It's not something that could have a loose connection as it is soldered onto the motherboard.  
    If you want to be absolutely 100% certain that it's not a software issue, you could perform a full HP system recovery back to factory conditions.  That would confirm without any doubt whether it is a hardware or software issue, but it is more than likely a hardware failure based on the behavior.
    However, what is the hardware ID of the base system device?
    This can be retrieved by opening the device in device manager and navigating to the details tab and changing the property to hardware IDs.  This should help identify exactly what the base system device is.  
    ↙-----------How do I give Kudos?| How do I mark a post as Solved? ----------------↓

  • Audio Problem. says computers muted/ no audio output device is installed. works on start up

    I have a HP pavilion dv6500 notebook, windows vista 32-bit. 
    My computer was recently wiped and was given to me by a friend. he told me the computer needed a new sound card and that the sound never worked.
    However, when i first started my computer I had an update and a sound driver was installed.
    I put on a movie, the sound worked flawlessly, so I know the drivers, audio output device and soundcard are all installed correctly, but after a minute or so of watching the movie my sound cuts out, the speakers icon shows it is muted, and won't allow me to change the volume, when i scroll over it a message pops up that reads "no audio output device is installed". 
    sometimes when I shutdown my computer and restart it, my speaker Icon appears normal, and I can listen to music or watch a music video and the sound works again, but after 30 seconds to a minute or so, it does the same thing and wont work anymore.
    I dont know what to do. I have tried to use the site to scan my computer for missing files or drivers but it just said that my computer isn't the model i specified (which it is) and that I have an expired warranty. which shouldn't matter if all i need is support. 
    I work with music and need to use programs like Protools or Logic Pro but I cant do that without sound so haven't installed those programs on my HP yest. PLEASE HELP.

    I'm having the exact same problem. The problem arose randomly, and when I checked my computer's devices there was a device in "other" called 'High Definition Audio Bus' that had been installed (without my knowledge) right before my computer lost sound.
    What had happened was my computer was running extremely slow all of a sudden and so I restarted it and when it restarted I had no sound. Because this device was installed on my computer immediately before the sound stopped working I assumed it was the cause of the problem and uninstalled it.
    It didn't solve the problem, niether did installing the driver you posted a link to, it just posted an error message that read: "Could not find the device for this driver"
    I'll try reinstalling the necessary drivers for my computer, which leads to my next and much more insignificant issue: How do I find the product name of my laptop? it's an HP Pavilion g series, and it lists the serial number and product number but from this list http://h20000.www2.hp.com/bizsupport/TechSupport/ProductList.jsp?lang=en&cc=us&taskId=135&prodSeries... I have no idea which laptop is mine. How can I find out?

Maybe you are looking for

  • Issue with Photostream in iPhoto 11

    Dear forum members, I'm having a strange issue with iCloud's Photostream in iPhoto 11. The new photos added from my iPhone and iMac appear in my MacBook's Photostream (MacBook Pro 13" Mid 2012, running OSX 10.8.2), but everytime I try to edit or view

  • ITunes 11.1.4.62 freezes while syncing with Outlook

    Hi, After installing iTunes 11.1.4.62 syncing my iPod Touch (4th gen - iOS 6.1.6) with Outlook 2010 no longer works (I'm using Windows 7 64-bit Ultimate). The syncing process hangs while "preparing to sync" or while "syncing calendars". Strangely eno

  • End jump after each chapter

    I have DSP 4.2.0 I want the DVD to jump back to the menu page after each chapter is finished. Can someone direct me on how to do this? I tried under "connections" setting it up, but it didn't work. Gerry

  • Cumulative Incremental?

    Hopefully you all can resolve a question for me. I was under the impression that a CUMULATIVE backup and an INCREMENTAL backup were two separate things. INCREMENTAL LEVEL : Copies only those data blocks that have changed since the last incremental in

  • E65 and AUDI A6 MMI Bluetooth Car Kit

    I am absolutely amazed at Nokia's unwillingness to consider close cooperation with major car manufacturers i.e. in my case AUDI. Having changed to a Business Phone from a SONY ERICSSON, i now find that the BT functionality is close to useless when co