Ok, I figured out the following code form the references you posted.
Code:
unsigned int NumDevs = 0;
WAVEOUTCAPS wResult;
char cGet = 0;
NumDevs = waveOutGetNumDevs();
if(NumDevs >0 && NumDevs != 1)
{
printf("Please Select 1 of the following %d devices.\n",NumDevs);
for(int i = 0; i < (int)NumDevs; i++)
{
waveOutGetDevCaps(i,&wResult,sizeof(wResult));
printf("Device %d: %s\n",i,wResult.szPname);
}
printf("Use Device Number: ");
cin.get(cGet);
waveOutGetDevCaps((int)cGet,&wResult,sizeof(wResult));
printf("Using Wave Device %d: %s\n",(int)cGet,wResult.szPname);
}
else
{
waveOutGetDevCaps(0,&wResult,sizeof(wResult));
printf("Using Wave Device 0: %s\n",wResult.szPname);
}
Now, any help on playing the actual file?