aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/backends
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2016-05-22 21:03:16 -0700
committerChris Robinson <[email protected]>2016-05-22 21:03:16 -0700
commite8b274d34993010462cba1086871015b3db1ccfb (patch)
tree128eb2eb781def32eab90e7193021e06d50e98c4 /Alc/backends
parentea3fa06bc5f28d346e89600639caab1e199821da (diff)
Properly pluralize some messages
Diffstat (limited to 'Alc/backends')
-rw-r--r--Alc/backends/mmdevapi.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/Alc/backends/mmdevapi.c b/Alc/backends/mmdevapi.c
index 8851678b..938488ac 100644
--- a/Alc/backends/mmdevapi.c
+++ b/Alc/backends/mmdevapi.c
@@ -1574,9 +1574,10 @@ static HRESULT ALCmmdevCapture_resetProxy(ALCmmdevCapture *self)
wfx->nChannels != OutputType.Format.nChannels ||
wfx->nBlockAlign != OutputType.Format.nBlockAlign)
{
- ERR("Did not get matching format, wanted: %s %s %uhz, got: %d channel(s) %d-bit %luhz\n",
- DevFmtChannelsString(device->FmtChans), DevFmtTypeString(device->FmtType), device->Frequency,
- wfx->nChannels, wfx->wBitsPerSample, wfx->nSamplesPerSec);
+ ERR("Failed to get matching format, wanted: %s %s %uhz, got: %d channel%s %d-bit %luhz\n",
+ DevFmtChannelsString(device->FmtChans), DevFmtTypeString(device->FmtType),
+ device->Frequency, wfx->nChannels, (wfx->nChannels==1)?"":"s", wfx->wBitsPerSample,
+ wfx->nSamplesPerSec);
CoTaskMemFree(wfx);
return E_FAIL;
}