#include <vlc/vlc.h>
#include <vlc/aout.h>
+#include <vlc_interaction.h>
#include "aout_internal.h"
if( p_sys->i_hog_pid != -1 && p_sys->i_hog_pid != getpid() )
{
msg_Err( p_aout, "Selected audio device is exclusively in use by another program." );
+ intf_UserFatal( p_aout, VLC_FALSE, _("Audio output failed"),
+ _("The selected audio output device is exclusively in "
+ "use by another program.") );
goto error;
}
p_aout->output.output.i_physical_channels |= AOUT_CHAN_REARCENTER;
continue;
default:
- msg_Warn( p_aout, "Unrecognized channel form provided by driver: %d", (int)layout->mChannelDescriptions[i].mChannelLabel );
+ msg_Warn( p_aout, "unrecognized channel form provided by driver: %d", (int)layout->mChannelDescriptions[i].mChannelLabel );
}
}
if( p_aout->output.output.i_physical_channels == 0 )
{
p_aout->output.output.i_physical_channels = AOUT_CHAN_LEFT | AOUT_CHAN_RIGHT;
msg_Err( p_aout, "You should configure your speaker layout with Audio Midi Setup Utility in /Applications/Utilities. Now using Stereo mode." );
+ intf_UserFatal( p_aout, VLC_FALSE, _("Audio device is not configured"),
+ _("You should configure your speaker layout with "
+ "the \"Audio Midi Setup Utility\" in /Applications/"
+ "Utilities. Stereo mode is being used now.") );
}
}
if( layout ) free( layout );
p_streams = (AudioStreamID *)malloc( i_param_size );
if( p_streams == NULL )
{
- msg_Err( p_aout, "Out of memory" );
+ msg_Err( p_aout, "out of memory" );
return VLC_FALSE;
}
var_Change( p_aout, "audio-device", VLC_VAR_ADDCHOICE, &val, &text );
if( p_sys->i_default_dev == p_devices[i] && config_GetInt( p_aout, "spdif" ) )
{
- /* I we selected to prefer SPDIF output if available
+ /* We selected to prefer SPDIF output if available
* then this "dummy" entry should be selected */
var_Change( p_aout, "audio-device", VLC_VAR_SETDEFAULT, &val, NULL );
var_Set( p_aout, "audio-device", val );
p_streams = (AudioStreamID *)malloc( i_param_size );
if( p_streams == NULL )
{
- msg_Err( p_aout, "Out of memory" );
+ msg_Err( p_aout, "out of memory" );
return VLC_ENOMEM;
}