Changing CD volume

Started by
1 comment, last by GameDev.net 24 years, 6 months ago
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

Advertisement
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

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
--MFC (The Matrix Foundation Crew)

This topic is closed to new replies.

Advertisement