From d1bb04d588f444d4e1f7318fcd05eb7c298a129e Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Fri, 23 Jun 2017 09:54:26 -0700 Subject: Improve traces for the mmdevapi capture conversions --- Alc/backends/mmdevapi.c | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) (limited to 'Alc/backends/mmdevapi.c') diff --git a/Alc/backends/mmdevapi.c b/Alc/backends/mmdevapi.c index 875a3e4d..75370489 100644 --- a/Alc/backends/mmdevapi.c +++ b/Alc/backends/mmdevapi.c @@ -1741,10 +1741,10 @@ static HRESULT ALCmmdevCapture_resetProxy(ALCmmdevCapture *self) device->FmtChans); if(!self->ChannelConv) { - ERR("Failed to create stereo-to-mono converter\n"); + ERR("Failed to create %s stereo-to-mono converter\n", DevFmtTypeString(srcType)); return E_FAIL; } - TRACE("Created stereo-to-mono converter\n"); + TRACE("Created %s stereo-to-mono converter\n", DevFmtTypeString(srcType)); /* The channel converter always outputs float, so change the input type * for the resampler/type-converter. */ @@ -1756,10 +1756,10 @@ static HRESULT ALCmmdevCapture_resetProxy(ALCmmdevCapture *self) device->FmtChans); if(!self->ChannelConv) { - ERR("Failed to create mono-to-stereo converter\n"); + ERR("Failed to create %s mono-to-stereo converter\n", DevFmtTypeString(srcType)); return E_FAIL; } - TRACE("Created mono-to-stereo converter\n"); + TRACE("Created %s mono-to-stereo converter\n", DevFmtTypeString(srcType)); srcType = DevFmtFloat; } @@ -1771,16 +1771,14 @@ static HRESULT ALCmmdevCapture_resetProxy(ALCmmdevCapture *self) ); if(!self->SampleConv) { - ERR("Failed to create converter for format, dst: %s %s %uhz, src: %d-bit %luhz\n", + ERR("Failed to create converter for %s format, dst: %s %uhz, src: %s %luhz\n", DevFmtChannelsString(device->FmtChans), DevFmtTypeString(device->FmtType), - device->Frequency, OutputType.Format.wBitsPerSample, - OutputType.Format.nSamplesPerSec); + device->Frequency, DevFmtTypeString(srcType), OutputType.Format.nSamplesPerSec); return E_FAIL; } - TRACE("Created converter for format, dst: %s %s %uhz, src: %d-bit %luhz\n", + TRACE("Created converter for %s format, dst: %s %uhz, src: %s %luhz\n", DevFmtChannelsString(device->FmtChans), DevFmtTypeString(device->FmtType), - device->Frequency, OutputType.Format.wBitsPerSample, - OutputType.Format.nSamplesPerSec); + device->Frequency, DevFmtTypeString(srcType), OutputType.Format.nSamplesPerSec); } hr = IAudioClient_Initialize(self->client, -- cgit v1.2.3