[MMIXER]
authorJohannes Anderwald <johannes.anderwald@reactos.org>
Fri, 2 Apr 2010 13:49:10 +0000 (13:49 +0000)
committerJohannes Anderwald <johannes.anderwald@reactos.org>
Fri, 2 Apr 2010 13:49:10 +0000 (13:49 +0000)
- Copy device name when initializing WAVEINCAPS / WAVEOUTCAPS
- Fixes display wave device name in cpl / waveInGetDevCaps / waveOutGetDevCaps

svn path=/trunk/; revision=46680

reactos/lib/drivers/sound/mmixer/wave.c

index a8b2675..0ba0aae 100644 (file)
@@ -360,6 +360,17 @@ MMixerInitializeWaveInfo(
     WaveInfo->DeviceId = MixerData->DeviceId;
     WaveInfo->PinId = PinId;
 
+
+    /* copy device name */
+    if (bWaveIn)
+    {
+        wcscpy(WaveInfo->u.InCaps.szPname, DeviceName);
+    }
+    else
+    {
+        wcscpy(WaveInfo->u.OutCaps.szPname, DeviceName);
+    }
+
     /* FIXME determine manufacturer / product id */
     if (bWaveIn)
     {
@@ -410,6 +421,8 @@ MMixerInitializeWaveInfo(
     MixerContext->Free(MultipleItem);
 
 
+
+
     if (bWaveIn)
     {
         InsertTailList(&MixerList->WaveInList, &WaveInfo->Entry);