context = window MIX_MODES = context.JK.MIX_MODES MixerActions = @MixerActions @SessionSelfVolumeHover = React.createClass({ mixins: [Reflux.listenTo(@SessionMyTracksStore,"onInputsChanged")] closeHover: (e) -> e.preventDefault() $container = $(this.getDOMNode()).closest('.react-holder') $container.data('bt').btOff() onInputsChanged: (sessionMixers) -> mixers = sessionMixers.mixers inputGroupMixers = mixers.simulatedMusicCategoryMixers[MIX_MODES.PERSONAL] chatGroupMixers = mixers.simulatedChatCategoryMixers[MIX_MODES.PERSONAL] @setState({inputGroupMixers: inputGroupMixers, chatGroupMixers: chatGroupMixers}) getInitialState: () -> {inputGroupMixers: @props.inputGroupMixers, chatGroupMixers: @props.chatGroupMixers} handleAudioInputMute: (e) -> e.preventDefault() muting = $(e.currentTarget).is('.enabled') MixerActions.mute(@state.inputGroupMixers.muteMixer, muting) handleChatInputMute: (e) -> e.preventDefault() muting = $(e.currentTarget).is('.enabled') MixerActions.mute(@state.chatGroupMixers.muteMixer, muting) handleAudioInputMuteCheckbox: (e) -> muting = $(e.target).is(':checked') MixerActions.mute(@state.inputGroupMixers.muteMixer, muting) handleChatMuteCheckbox: (e) -> muting = $(e.target).is(':checked') MixerActions.mute(@state.chatGroupMixers.muteMixer, muting) render: () -> monitorMuteMixer = @state.inputGroupMixers.muteMixer[0] monitorMuteMixerId = monitorMuteMixer?.id monitorVolumeLeft = @state.inputGroupMixers.mixer[0].volume_left monitorMuteClasses = classNames({ 'track-icon-mute': true 'enabled' : !monitorMuteMixer?.mute 'muted' : monitorMuteMixer?.mute }) chatMuteMixer = @state.chatGroupMixers.muteMixer[0] chatMuteMixerId = chatMuteMixer?.id chatVolumeLeft = @state.chatGroupMixers.mixer?[0].volume_left chatMuteClasses = classNames({ 'track-icon-mute': true 'enabled' : !chatMuteMixer?.mute 'muted' : chatMuteMixer?.mute }) `

Music

Volume
{monitorVolumeLeft}dB

Use this slider to control the volume of all the music in the session in your headphones or speakers.

This will not affect the volume for other musicians in the session.

To adjust master levels for all musicians for recordings and broadcasts, use Mixer button in the toolbar.

Chat

Volume
{chatVolumeLeft}dB

Use this slider to control the volume of all the voice chat in the session in your headphones or speakers.

This will not affect the volume for other musicians in the session.

close
` componentDidMount: () -> $root = jQuery(this.getDOMNode()) # initialize icheck $chatMuteCheckbox = $root.find('.chat-mixer input') context.JK.checkbox($chatMuteCheckbox) $chatMuteCheckbox.on('ifChanged', @handleChatMuteCheckbox); if @state.chatGroupMixers.muteMixer[0].mute $chatMuteCheckbox.iCheck('check').attr('checked', true) else $chatMuteCheckbox.iCheck('uncheck').attr('checked', false) $audioInputMuteCheckbox = $root.find('.monitor-mixer input') context.JK.checkbox($audioInputMuteCheckbox) $audioInputMuteCheckbox.on('ifChanged', @handleAudioInputMuteCheckbox); if @state.inputGroupMixers.muteMixer[0].mute $audioInputMuteCheckbox.iCheck('check').attr('checked', true) else $audioInputMuteCheckbox.iCheck('uncheck').attr('checked', false) componentWillUpdate: (nextProps, nextState) -> $root = jQuery(this.getDOMNode()) # re-initialize icheck $chatMuteCheckbox = $root.find('.chat-mixer input') if nextState.chatGroupMixers.muteMixer[0].mute $chatMuteCheckbox.iCheck('check').attr('checked', true) else $chatMuteCheckbox.iCheck('uncheck').attr('checked', false) $audioInputMuteCheckbox = $root.find('.monitor-mixer input') if nextState.inputGroupMixers.muteMixer[0].mute $audioInputMuteCheckbox.iCheck('check').attr('checked', true) else $audioInputMuteCheckbox.iCheck('uncheck').attr('checked', false) })