diff options
Diffstat (limited to 'Alc/mmdevapi.c')
-rw-r--r-- | Alc/mmdevapi.c | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/Alc/mmdevapi.c b/Alc/mmdevapi.c index c31263cd..a68f1b15 100644 --- a/Alc/mmdevapi.c +++ b/Alc/mmdevapi.c @@ -82,7 +82,7 @@ static ALCboolean MakeExtensible(WAVEFORMATEXTENSIBLE *out, const WAVEFORMATEX * else if(out->Format.nChannels == 2) out->dwChannelMask = STEREO; else - ERROR("Unhandled PCM channel count: %d\n", out->Format.nChannels); + ERR("Unhandled PCM channel count: %d\n", out->Format.nChannels); out->SubFormat = KSDATAFORMAT_SUBTYPE_PCM; } else if(in->wFormatTag == WAVE_FORMAT_IEEE_FLOAT) @@ -95,12 +95,12 @@ static ALCboolean MakeExtensible(WAVEFORMATEXTENSIBLE *out, const WAVEFORMATEX * else if(out->Format.nChannels == 2) out->dwChannelMask = STEREO; else - ERROR("Unhandled IEEE float channel count: %d\n", out->Format.nChannels); + ERR("Unhandled IEEE float channel count: %d\n", out->Format.nChannels); out->SubFormat = KSDATAFORMAT_SUBTYPE_IEEE_FLOAT; } else { - ERROR("Unhandled format tag: 0x%04x\n", in->wFormatTag); + ERR("Unhandled format tag: 0x%04x\n", in->wFormatTag); return ALC_FALSE; } return ALC_TRUE; @@ -151,7 +151,7 @@ static ALuint MMDevApiProc(ALvoid *ptr) hr = IAudioClient_GetService(data->client, &IID_IAudioRenderClient, &render.ptr); if(FAILED(hr)) { - ERROR("Failed to get AudioRenderClient service: 0x%08lx\n", hr); + ERR("Failed to get AudioRenderClient service: 0x%08lx\n", hr); aluHandleDisconnect(device); return 0; } @@ -163,7 +163,7 @@ static ALuint MMDevApiProc(ALvoid *ptr) hr = IAudioClient_GetCurrentPadding(data->client, &written); if(FAILED(hr)) { - ERROR("Failed to get padding: 0x%08lx\n", hr); + ERR("Failed to get padding: 0x%08lx\n", hr); aluHandleDisconnect(device); break; } @@ -184,7 +184,7 @@ static ALuint MMDevApiProc(ALvoid *ptr) } if(FAILED(hr)) { - ERROR("Failed to buffer data: 0x%08lx\n", hr); + ERR("Failed to buffer data: 0x%08lx\n", hr); aluHandleDisconnect(device); break; } @@ -229,7 +229,7 @@ static ALCboolean MMDevApiOpenPlayback(ALCdevice *device, const ALCchar *deviceN data->mmdev = NULL; free(data); - ERROR("Device init failed: 0x%08lx\n", hr); + ERR("Device init failed: 0x%08lx\n", hr); return ALC_FALSE; } data->client = client; @@ -265,7 +265,7 @@ static ALCboolean MMDevApiResetPlayback(ALCdevice *device) hr = IAudioClient_GetMixFormat(data->client, &wfx); if(FAILED(hr)) { - ERROR("Failed to get mix format: 0x%08lx\n", hr); + ERR("Failed to get mix format: 0x%08lx\n", hr); return ALC_FALSE; } @@ -296,7 +296,7 @@ static ALCboolean MMDevApiResetPlayback(ALCdevice *device) else if(OutputType.Format.nChannels == 8 && OutputType.dwChannelMask == X7DOT1) device->FmtChans = DevFmtX71; else - ERROR("Unhandled channel config: %d -- 0x%08x\n", OutputType.Format.nChannels, OutputType.dwChannelMask); + ERR("Unhandled channel config: %d -- 0x%08x\n", OutputType.Format.nChannels, OutputType.dwChannelMask); } switch(device->FmtChans) @@ -364,12 +364,12 @@ static ALCboolean MMDevApiResetPlayback(ALCdevice *device) hr = IAudioClient_IsFormatSupported(data->client, AUDCLNT_SHAREMODE_SHARED, &OutputType.Format, &wfx); if(FAILED(hr)) { - ERROR("Failed to check format support: 0x%08lx\n", hr); + ERR("Failed to check format support: 0x%08lx\n", hr); hr = IAudioClient_GetMixFormat(data->client, &wfx); } if(FAILED(hr)) { - ERROR("Failed to find a supported format: 0x%08lx\n", hr); + ERR("Failed to find a supported format: 0x%08lx\n", hr); return ALC_FALSE; } @@ -386,7 +386,7 @@ static ALCboolean MMDevApiResetPlayback(ALCdevice *device) if(device->Frequency != OutputType.Format.nSamplesPerSec) { if((device->Flags&DEVICE_FREQUENCY_REQUEST)) - ERROR("Failed to set %dhz, got %dhz instead\n", device->Frequency, OutputType.Format.nSamplesPerSec); + ERR("Failed to set %dhz, got %dhz instead\n", device->Frequency, OutputType.Format.nSamplesPerSec); device->Flags &= ~DEVICE_FREQUENCY_REQUEST; device->Frequency = OutputType.Format.nSamplesPerSec; } @@ -400,7 +400,7 @@ static ALCboolean MMDevApiResetPlayback(ALCdevice *device) (device->FmtChans == DevFmtX71 && OutputType.Format.nChannels == 8 && OutputType.dwChannelMask == X7DOT1))) { if((device->Flags&DEVICE_CHANNELS_REQUEST)) - ERROR("Failed to set %s, got %d channels (0x%08x) instead\n", DevFmtChannelsString(device->FmtChans), OutputType.Format.nChannels, OutputType.dwChannelMask); + ERR("Failed to set %s, got %d channels (0x%08x) instead\n", DevFmtChannelsString(device->FmtChans), OutputType.Format.nChannels, OutputType.dwChannelMask); device->Flags &= ~DEVICE_CHANNELS_REQUEST; if(OutputType.Format.nChannels == 1 && OutputType.dwChannelMask == MONO) @@ -419,7 +419,7 @@ static ALCboolean MMDevApiResetPlayback(ALCdevice *device) device->FmtChans = DevFmtX71; else { - ERROR("Unhandled extensible channels: %d -- 0x%08x\n", OutputType.Format.nChannels, OutputType.dwChannelMask); + ERR("Unhandled extensible channels: %d -- 0x%08x\n", OutputType.Format.nChannels, OutputType.dwChannelMask); device->FmtChans = DevFmtStereo; OutputType.Format.nChannels = 2; OutputType.dwChannelMask = STEREO; @@ -434,7 +434,7 @@ static ALCboolean MMDevApiResetPlayback(ALCdevice *device) !((device->FmtType == DevFmtUByte && OutputType.Format.wBitsPerSample == 8) || (device->FmtType == DevFmtShort && OutputType.Format.wBitsPerSample == 16))) { - ERROR("Failed to set %s samples, got %d/%d-bit instead\n", DevFmtTypeString(device->FmtType), OutputType.Samples.wValidBitsPerSample, OutputType.Format.wBitsPerSample); + ERR("Failed to set %s samples, got %d/%d-bit instead\n", DevFmtTypeString(device->FmtType), OutputType.Samples.wValidBitsPerSample, OutputType.Format.wBitsPerSample); if(OutputType.Format.wBitsPerSample == 8) device->FmtType = DevFmtUByte; else if(OutputType.Format.wBitsPerSample == 16) @@ -454,7 +454,7 @@ static ALCboolean MMDevApiResetPlayback(ALCdevice *device) if(OutputType.Samples.wValidBitsPerSample != OutputType.Format.wBitsPerSample || !((device->FmtType == DevFmtFloat && OutputType.Format.wBitsPerSample == 32))) { - ERROR("Failed to set %s samples, got %d/%d-bit instead\n", DevFmtTypeString(device->FmtType), OutputType.Samples.wValidBitsPerSample, OutputType.Format.wBitsPerSample); + ERR("Failed to set %s samples, got %d/%d-bit instead\n", DevFmtTypeString(device->FmtType), OutputType.Samples.wValidBitsPerSample, OutputType.Format.wBitsPerSample); if(OutputType.Format.wBitsPerSample != 32) { device->FmtType = DevFmtFloat; @@ -465,7 +465,7 @@ static ALCboolean MMDevApiResetPlayback(ALCdevice *device) } else { - ERROR("Unhandled format sub-type\n"); + ERR("Unhandled format sub-type\n"); device->FmtType = DevFmtShort; OutputType.Format.wBitsPerSample = 16; OutputType.Samples.wValidBitsPerSample = OutputType.Format.wBitsPerSample; @@ -482,7 +482,7 @@ static ALCboolean MMDevApiResetPlayback(ALCdevice *device) 0, &OutputType.Format, NULL); if(FAILED(hr)) { - ERROR("Failed to initialize audio client: 0x%08lx\n", hr); + ERR("Failed to initialize audio client: 0x%08lx\n", hr); return ALC_FALSE; } @@ -491,7 +491,7 @@ static ALCboolean MMDevApiResetPlayback(ALCdevice *device) hr = IAudioClient_GetBufferSize(data->client, &buffer_len); if(FAILED(hr)) { - ERROR("Failed to get audio buffer info: 0x%08lx\n", hr); + ERR("Failed to get audio buffer info: 0x%08lx\n", hr); return ALC_FALSE; } @@ -500,14 +500,14 @@ static ALCboolean MMDevApiResetPlayback(ALCdevice *device) if(device->NumUpdates <= 1) { device->NumUpdates = 1; - ERROR("Audio client returned default_period > buffer_len/2; expect break up\n"); + ERR("Audio client returned default_period > buffer_len/2; expect break up\n"); } device->UpdateSize = buffer_len / device->NumUpdates; hr = IAudioClient_Start(data->client); if(FAILED(hr)) { - ERROR("Failed to start audio client: 0x%08lx\n", hr); + ERR("Failed to start audio client: 0x%08lx\n", hr); return ALC_FALSE; } @@ -515,7 +515,7 @@ static ALCboolean MMDevApiResetPlayback(ALCdevice *device) if(!data->thread) { IAudioClient_Stop(data->client); - ERROR("Failed to start thread\n"); + ERR("Failed to start thread\n"); return ALC_FALSE; } |