mirror of
https://github.com/reactos/reactos.git
synced 2025-07-04 09:31:22 +00:00
[SNDVOL32] Disable the balance trackbar for mono channels.
CORE-15743
This commit is contained in:
parent
008344fd09
commit
45f0d7413c
1 changed files with 27 additions and 12 deletions
|
@ -562,6 +562,20 @@ EnumConnectionsCallback(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (Line->cChannels == 1)
|
||||||
|
{
|
||||||
|
/* Disable the balance trackbar for mono channels */
|
||||||
|
wID = (PrefContext->Count + 1) * IDC_LINE_SLIDER_HORZ;
|
||||||
|
|
||||||
|
/* get dialog control */
|
||||||
|
hDlgCtrl = GetDlgItem(PrefContext->MixerWindow->hWnd, wID);
|
||||||
|
if (hDlgCtrl != NULL)
|
||||||
|
{
|
||||||
|
EnableWindow(hDlgCtrl, FALSE);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (Line->cChannels == 2)
|
||||||
|
{
|
||||||
/* Set the balance trackbar */
|
/* Set the balance trackbar */
|
||||||
wID = (PrefContext->Count + 1) * IDC_LINE_SLIDER_HORZ;
|
wID = (PrefContext->Count + 1) * IDC_LINE_SLIDER_HORZ;
|
||||||
|
|
||||||
|
@ -582,6 +596,7 @@ EnumConnectionsCallback(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* free controls */
|
/* free controls */
|
||||||
HeapFree(GetProcessHeap(), 0, Control);
|
HeapFree(GetProcessHeap(), 0, Control);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue