{
if ((error = audin_load_device_plugin(audin, audin->subsystem, args)))
{
- WLog_Print(audin->log, WLOG_ERROR,
- "audin_load_device_plugin %s failed with error %" PRIu32 "!",
- audin->subsystem, error);
+ WLog_Print(
+ audin->log, WLOG_ERROR,
+ "Unable to load microphone redirection subsystem %s because of error %" PRIu32 "",
+ audin->subsystem, error);
goto out;
}
}
{
/* If we have no audin device do not register plugin but still return OK or the client will
* just disconnect due to a missing microphone. */
- WLog_Print(audin->log, WLOG_ERROR, "no sound device.");
+ WLog_Print(audin->log, WLOG_ERROR, "No microphone device could be found.");
error = CHANNEL_RC_OK;
goto out;
}
UINT error;
if (waveInGetNumDevs() == 0)
+ {
+ WLog_Print(winmm->log, WLOG_ERROR, "No microphone available!");
return ERROR_DEVICE_NOT_AVAILABLE;
+ }
winmm = (AudinWinmmDevice*)calloc(1, sizeof(AudinWinmmDevice));
{
if ((status = rdpsnd_load_device_plugin(rdpsnd, rdpsnd->subsystem, args)))
{
- WLog_ERR(TAG, "unable to load the %s subsystem plugin because of error %" PRIu32 "",
+ WLog_ERR(TAG, "Unable to load sound playback subsystem %s because of error %" PRIu32 "",
rdpsnd->subsystem, status);
return status;
}
const char* device_name = backends[x].device;
if ((status = rdpsnd_load_device_plugin(rdpsnd, subsystem_name, args)))
- WLog_ERR(TAG, "unable to load the %s subsystem plugin because of error %" PRIu32 "",
+ WLog_ERR(TAG,
+ "Unable to load sound playback subsystem %s because of error %" PRIu32 "",
subsystem_name, status);
if (!rdpsnd->device)
{
ADDIN_ARGV* args;
rdpsndWinmmPlugin* winmm;
- winmm = (rdpsndWinmmPlugin*)calloc(1, sizeof(rdpsndWinmmPlugin));
-
- if (!winmm)
- return CHANNEL_RC_NO_MEMORY;
if (waveOutGetNumDevs() == 0)
+ {
+ WLog_Print(winmm->log, WLOG_ERROR, "No sound playback device available!");
return ERROR_DEVICE_NOT_AVAILABLE;
+ }
+
+ winmm = (rdpsndWinmmPlugin*)calloc(1, sizeof(rdpsndWinmmPlugin));
+ if (!winmm)
+ return CHANNEL_RC_NO_MEMORY;
winmm->device.Open = rdpsnd_winmm_open;
winmm->device.FormatSupported = rdpsnd_winmm_format_supported;