Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Main Volume on Sound Card

Posted on 1999-07-26
10
Medium Priority
?
250 Views
Last Modified: 2010-04-16
Is it Posible to set Volume by Messages
somethink like SendMessage(HWND of Volumewindow,MAIN_VOLUME,20,0)
0
Comment
Question by:hlava
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 5
10 Comments
 
LVL 23

Expert Comment

by:chensu
ID: 1201033
0
 

Author Comment

by:hlava
ID: 1201034
Yes I Know this example.But I don't understand it much.
Could you write as simply as possible set volume by this way?
0
 
LVL 23

Accepted Solution

by:
chensu earned 400 total points
ID: 1201035
I haven't seen a simpler example. You don't have to understand it. Just extract the functions (mainly with amd prefix) and use them in your own applications. Put comments here if you encounter any problems.
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 

Author Comment

by:hlava
ID: 1201036
will I need AFX headers if I'm programing in C++ Builder?
0
 
LVL 23

Expert Comment

by:chensu
ID: 1201037
No, that's for MFC programs. But you do need to #include <mmsystem.h> and link to winmm.lib.
0
 

Author Comment

by:hlava
ID: 1201038
Where is winmm.lib
0
 
LVL 23

Expert Comment

by:chensu
ID: 1201039
winmm.lib is an import library for winmm.dll. winmm.lib is in the lib directory of your C++ compiler normally. I am not sure what you need for C++ Builder. Check the C++ Builder documentations (multimedia section such as the PlaySound function, or the mixerOpen function).
0
 

Author Comment

by:hlava
ID: 1201040
Error,error,...
it return error while compiling.
I translate winmm.dll to winmm.lib,then implement but return error that couldn't find it.
0
 
LVL 23

Expert Comment

by:chensu
ID: 1201041
What's the error message? Does the C++ Builder come with any samples that use PlaySound, MCI or any multimedia functions? If yes, try to find out what lib files they link to.
0
 

Author Comment

by:hlava
ID: 1201042
It return that it couldn't find Winmm.lib
0

Featured Post

New benefit for Premium Members - Upgrade now!

Ready to get started with anonymous questions today? It's easy! Learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question