// Get the number of auxilary audio devs //
int numdevs = auxGetNumDevs();
int devid = 0;
AUXCAPS auxCaps;
// Find the CDAudio device //
for (int i = 0 ; i < numdevs ; i ++)
{
auxGetDevCaps(i, &auxCaps, sizeof(auxCaps));
devid = i;
i = numdevs;
}
// Change the volume & check against limits//
if (vol > 100) vol = 100;
if (vol < 0) vol = 0;
auxSetVolume(devid, vol*655);
-Geoff