mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 17:34:57 +00:00
[MMIXER]
- Copy device name when initializing WAVEINCAPS / WAVEOUTCAPS - Fixes display wave device name in cpl / waveInGetDevCaps / waveOutGetDevCaps svn path=/trunk/; revision=46680
This commit is contained in:
parent
9e92286f5c
commit
90a11f48e9
1 changed files with 13 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue