audin/server: Do not overwrite values of the server audio formats

It just makes the usage of codecs impossible.
This commit is contained in:
Pascal Nowack 2022-06-08 13:22:09 +02:00 committed by akallabeth
parent a547f8c4b0
commit 1f0b3c8004

View File

@ -170,9 +170,6 @@ static UINT audin_server_send_formats(audin_server* audin, wStream* s)
for (i = 0; i < audin->context.num_server_formats; i++)
{
AUDIO_FORMAT format = audin->context.server_formats[i];
// TODO: Eliminate this
format.nAvgBytesPerSec =
format.nSamplesPerSec * format.nChannels * format.wBitsPerSample / 8;
if (!audio_format_write(s, &format))
{