Int n=waveInGetNumDevs ();
WAVEOUTCAPS tmpWAVEOUTCAPS;
for (int i=0; I & lt; n; I++) {
WaveOutGetDevCaps (I, & amp; TmpWAVEOUTCAPS, sizeof (tmpWAVEOUTCAPS));
WaveDevs - & gt; Add (tmpWAVEOUTCAPS. SzPname);
}
At first I want to get equipment name, but found that the length of the structure inside szPname limited to 31 plus a \ 0, in other words basically device name will be unable to complete, according to
Heard that you can use directsound or other method, which master can give a complete instance? Thank you very much!!!!!!
CodePudding user response:
N you define the number of input devicesBut to read the details of the output device... What east east!!!!!!!!!!
CodePudding user response:
Can you didn't do it don't comment upstairs.CodePudding user response:
I also learn from them, if I have the wrong can correct me,Without anger...
Because I don't sound driver, but I have to help you test!
Kindness is what you say...
CodePudding user response:
You this part I have seen in the MSDN suggesting thatThe length of szPname is defined by The following macro in Mmsystem. H:
32/* # define MAXPNAMELEN Max product name length (o NULL) */
To Mmsystem. H, change the 32 bigger try..
CodePudding user response:
This cannot be modified, in the system of Windows 7 +, you can use the IMMDeviceEnumerator and IMMDeviceCollection interface to get the complete device name.CodePudding user response:
Learning, so it means can't use in XP?CodePudding user response:
Registries should be able to take to complete