Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / May 2004

Tip: Looking for answers? Try searching our database.

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

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
godyuyu - 17 May 2004 10:01 GMT
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.
William DePalo [MVP VC++] - 17 May 2004 16:48 GMT
> 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/default.asp?url=/library/en-us/devnotes/winpro
g/accessing_the_preferred_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
godyuyu - 19 May 2004 02:41 GMT
Really?I can't ?Thank you all the same

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.