Skip to content

Commit

Permalink
Merge pull request #334 from bbc/bbc-release51
Browse files Browse the repository at this point in the history
Feat/lawo and atem mono sum
  • Loading branch information
LindvedKrvang authored Sep 10, 2024
2 parents 9b68527 + 3c82614 commit 8824740
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 3 deletions.
2 changes: 1 addition & 1 deletion client/src/assets/css/ChanStrip.css
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@
outline: none;
-moz-outline: none;
color: white;
height: 62px;
height: 55px;
width: 70px;
border-color: rgb(71, 71, 71);
background-color: rgb(53, 53, 53);
Expand Down
2 changes: 1 addition & 1 deletion client/src/assets/css/ChanStripFull.css
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@
outline: none;
-moz-outline: none;
color: white;
height: 62px;
height: 55px;
width: 70px;
border-color: rgb(71, 71, 71);
background-color: rgb(53, 53, 53);
Expand Down
17 changes: 17 additions & 0 deletions server/src/utils/mixerConnections/AtemConnection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import { FairlightAudioSource } from 'atem-connection/dist/state/fairlight'

enum TrackIndex {
Stereo = '-65280',
Mono = '-65281',
Right = '-255',
Left = '-256',
}
Expand Down Expand Up @@ -279,6 +280,22 @@ export class AtemMixerConnection {

this._sourceTracks[channelTypeIndex] = TrackIndex.Right
break
case 'MONO':
this._connection.setFairlightAudioMixerInputProps(
this._chNoToSource[channelIndex],
{ activeConfiguration: FairlightInputConfiguration.Mono }
)
if (pgmOn || pflOn) {
this._connection.setFairlightAudioMixerSourceProps(
this._chNoToSource[channelIndex],
TrackIndex.Mono,
{
mixOption: FairlightAudioMixOption.On,
}
)
}
this._sourceTracks[channelTypeIndex] = TrackIndex.Mono
break
}
}

Expand Down
14 changes: 14 additions & 0 deletions shared/src/constants/mixerProtocols/LawoRuby.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,13 @@ export const LawoRuby: MixerProtocol = {
type: 'int',
label: 'RR',
},
{
mixerMessage:
'Ruby.Sources.{channel}.DSP.Input.LR Mode',
value: 5,
type: 'int',
label: 'MONO',
},
],
CHANNEL_OUT_GAIN: [
{
Expand Down Expand Up @@ -119,6 +126,13 @@ export const LawoRuby: MixerProtocol = {
type: 'int',
label: 'RR',
},
{
mixerMessage:
'Ruby.Sources.{channel}.DSP.Input.LR Mode',
value: 5,
type: 'int',
label: 'MONO',
},
],
CHANNEL_OUT_GAIN: [
// {
Expand Down
10 changes: 9 additions & 1 deletion shared/src/constants/mixerProtocols/atem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {
MixerProtocol,
fxParamsList,
VuLabelConversionType,
MixerConnectionTypes
MixerConnectionTypes,
} from '../MixerProtocolInterface'

export const Atem: MixerProtocol = {
Expand Down Expand Up @@ -38,6 +38,10 @@ export const Atem: MixerProtocol = {
mixerMessage: '',
label: 'RR',
},
{
mixerMessage: '',
label: 'MONO',
},
],
// CHANNEL_OUT_GAIN: [{ mixerMessage: '' }],
// CHANNEL_VU?: Array<IMixerMessageProtocol>
Expand Down Expand Up @@ -66,6 +70,10 @@ export const Atem: MixerProtocol = {
mixerMessage: '',
label: 'RR',
},
{
mixerMessage: '',
label: 'MONO',
},
],
// CHANNEL_OUT_GAIN: [{ mixerMessage: '' }],
// CHANNEL_NAME?: Array<IMixerMessageProtocol>
Expand Down

0 comments on commit 8824740

Please sign in to comment.