From 31b02e044f689e9d586a935c924e4a989371823e Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Thu, 22 Jun 2017 13:58:32 -0700 Subject: Trace the capture converter formats for mmdevapi --- Alc/backends/mmdevapi.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Alc') diff --git a/Alc/backends/mmdevapi.c b/Alc/backends/mmdevapi.c index 43d8429d..875a3e4d 100644 --- a/Alc/backends/mmdevapi.c +++ b/Alc/backends/mmdevapi.c @@ -1744,6 +1744,7 @@ static HRESULT ALCmmdevCapture_resetProxy(ALCmmdevCapture *self) ERR("Failed to create stereo-to-mono converter\n"); return E_FAIL; } + TRACE("Created stereo-to-mono converter\n"); /* The channel converter always outputs float, so change the input type * for the resampler/type-converter. */ @@ -1758,6 +1759,7 @@ static HRESULT ALCmmdevCapture_resetProxy(ALCmmdevCapture *self) ERR("Failed to create mono-to-stereo converter\n"); return E_FAIL; } + TRACE("Created mono-to-stereo converter\n"); srcType = DevFmtFloat; } @@ -1775,6 +1777,10 @@ static HRESULT ALCmmdevCapture_resetProxy(ALCmmdevCapture *self) OutputType.Format.nSamplesPerSec); return E_FAIL; } + TRACE("Created converter for format, dst: %s %s %uhz, src: %d-bit %luhz\n", + DevFmtChannelsString(device->FmtChans), DevFmtTypeString(device->FmtType), + device->Frequency, OutputType.Format.wBitsPerSample, + OutputType.Format.nSamplesPerSec); } hr = IAudioClient_Initialize(self->client, -- cgit v1.2.3