Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.

Guest Anonymous Poster

Changing CD volume

This topic is 7020 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

This was answered a couple of days ago, but here it is again:

// assumming using mciSendString methods
char command[64];
char buffer[16];
UINT cdaudio_id;
DWORD volume_level;

strcpy(command,"open cdaudio wait");
mciSendString(command, buffer, 16, NULL);
buffer[15] = 0;
cdaudio_id = (UINT)atoi(buffer);

volume_level = volume | (volume << 16);
auxSetVolume(cdaudio_id, volume_level);

Jim Adams
Co-Designer 'The Light Befallen'

Share this post

Link to post
Share on other sites
Oh no !!! i had such problem but i did it
using the Win32 mixer functions !
They are not well documented in Win32 SDK,
i have written a class library in C++ for
changing the cd volume
tnx guy

Share this post

Link to post
Share on other sites
Guest Anonymous Poster

I'd like to change the volume of CD audio from within a game I'm working on. The tracks are played using MCI commands but I haven't been able to work out how to change the cd volume. Should I be looking at the mixer and line function from the Win32 SDK?

Can anybody point me in the right direction?



Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!