• Advertisement

Archived

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

Guest Anonymous Poster

Changing CD volume

This topic is 6779 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'
tcm@pobox.com
http://www.lightbefallen.com

Share this post


Link to post
Share on other sites
Advertisement
hi,
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
Hi,

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?

Thanks,

Martin

Share this post


Link to post
Share on other sites

  • Advertisement