diff options
author | Chris Robinson <[email protected]> | 2017-06-23 09:54:26 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2017-06-23 09:54:26 -0700 |
commit | d1bb04d588f444d4e1f7318fcd05eb7c298a129e (patch) | |
tree | 7150f8547039b5392025a3396d57a7a5b12d6309 /Alc/backends | |
parent | d70a98fe035ba5ea95e73095dafd76904162e27b (diff) |
Improve traces for the mmdevapi capture conversions
Diffstat (limited to 'Alc/backends')
-rw-r--r-- | Alc/backends/mmdevapi.c | 18 |
1 files changed, 8 insertions, 10 deletions
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, |