473,394 Members | 1,722 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

how can i change the preferred audio device by vc++

i need change the system preferred audio device in my vc++ project ,but i can't find the resolution.I just want to know the method.
Nov 17 '05 #1
2 2065
"godyuyu" <go*****@sina.com> wrote in message
news:AE**********************************@microsof t.com...
i need change the system preferred audio device in my vc++ project ,but i

can't find the resolution.I just want to know the method.

I might be wrong but I don't think that you can. In fact, it wasn't until ME
and 2K when Win32 first provided the DRVM_MAPPER_PREFERRED_GET "message" to
be used with waveInOpen() and waveOutOpen() so that you could determine the
ID of the default device in advance of opening it:

http://msdn.microsoft.com/library/de..._device_id.asp

And, _I_ think this is a good thing. The system preferred device is a user
setting. If your application has a preferred device it should salt its id
away somewhere for easy retrieval but it shouldn't mess with global
preferences. Just my opinion, YMMV.

By the way, please post follow-up in the multimedia (mmedia) group.

Regards,
Will

Nov 17 '05 #2
Really?I can't ?Thank you all the same
Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Bruce Bon | last post by:
The class below is intended to play a Sun audio file (.au) in the background while the main thread, which is servicing a GUI, continues without impact. It doesn't work. For a sound file that...
1
by: Noah | last post by:
I need to record raw 8-bit mono audio from a generic sound card on MS-Windows. I need to do something like this: sound_device = open audio device buffer = sound_device.read ('1 second, 8 bit,...
2
by: Sagaert Johan | last post by:
Hi I can play a wave file through a p/invoke to winmm , but how can i play a wave file to a specific audio device if i have more then one audio device in my pc ? Johan
0
by: Paul van der Heu | last post by:
I hope I've come to the right place..;^) For an app I am writing I need to create a list of available audio devices and display them in a combobox.. Displaying them is no problem, but I cannot...
3
by: pealy2 | last post by:
Sorry if this is in the wrong group, I've searched long & hard without finding anything even slightly useful. (recommendations for a more relevant group gratefuly received) I need to change the...
1
by: suki | last post by:
Hi! I play a video using mciSendString - statements. The audio is played by the on-board sound device (default sound) Can anyone tell me how to send this sound to an output of my (4 channel)...
1
by: =?Utf-8?B?15DXldeo158=?= | last post by:
I have recently installed my windows XP, the process went smoothly, but I had encounterd some drivers issues after the installation. I managed to solve the ethernet adapter driver issue, but I...
0
by: universe | last post by:
hi friends, I am developing a webapplication (using ASP.NET 2.0). In that I need to play audio file in the following scenario. Case 1: Only one file will be given as input to audio...
1
by: =?Utf-8?B?bWFsYWs=?= | last post by:
i recently had xp, then isntalled a friends copy of vista then back to xp, but for some reason i cant get no audio device working..i installed the ABIT cd it came with my new motherboard that was...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.