Bonjour à tous !
je voudrais dans un programme enregistrer l'audio micro.
Mais j'ai 2 device différent, j'arrive grace à la méthode :
/* Get the number of Digital Audio In devices in this computer */
iNumDevs = waveInGetNumDevs();
/* Go through all of those devices, displaying their names */
for (i = 0; i < iNumDevs; i++)
{
/* Get info about the next device */
if (!waveInGetDevCaps(i, &wic, sizeof(WAVEINCAPS)))
{
/* Display its Device ID and name */
//printf("Device ID #%u: %s\r\n", i, wic.szPname);
MessageBox(NULL,wic.szPname,"device",MB_OK);
}
}
à avoir un liste de mes device.
Mais maintenant je voudrais avec la méthode :
result = waveInOpen(&HWaveIn, WAVE_MAPPER, &WaveFormat, (DWORD)WaveInProc, 0, CALLBACK_FUNCTION);
Enregsitrer un device au choix. mais je ne sais pas quelle méthode utiliser pour remplacer WAVE_MAPPER.
Merci de votre aide !
Matt22