#NEWLINE# def get_mixer_class( self , config , mixer_classes ) : #NEWLINE# #INDENT# logger . debug ( 'Available Mopidy mixers: %s' , ( ', ' . join ( ( m . __name__ for m in mixer_classes ) ) or 'none' ) ) #NEWLINE# if ( config [ 'audio' ] [ 'mixer' ] == 'none' ) : #NEWLINE# #INDENT# logger . debug ( 'Mixer disabled' ) #NEWLINE# return None #NEWLINE# #UNINDENT# selected_mixers = [ m for m in mixer_classes if ( m . name == config [ 'audio' ] [ 'mixer' ] ) ] #NEWLINE# if ( len ( selected_mixers ) != 1 ) : #NEWLINE# #INDENT# logger . error ( 'Did not find unique mixer "%s". Alternatives are: %s' , m [ 'audio' ] [ 'mixer' ] , ( ( ', ' . join ( [ m . name for m in mixer_classes ] ) + ', none' ) or 'none' ) ) #NEWLINE# process . exit_process ( ) #NEWLINE# #UNINDENT# return selected_mixers [ 0 ]