Skip to content

Commit

Permalink
chore: add model definition property for supporting audio routing
Browse files Browse the repository at this point in the history
  • Loading branch information
Julusian committed May 7, 2024
1 parent 43e96b6 commit 93ae7bb
Show file tree
Hide file tree
Showing 17 changed files with 29 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/models/constellation4K1Me.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable @typescript-eslint/no-non-null-assertion */
import type { ModelSpec } from './types.js'
// import { Enums } from 'atem-connection'
import { ModelSpecConstellationHD1ME } from './constellationHd1Me.js'
Expand All @@ -6,4 +7,8 @@ export const ModelSpecConstellation4K1ME: ModelSpec = {
...ModelSpecConstellationHD1ME,
id: 28 as any, // Enums.Model.Constellation4K1ME,
label: '1 M/E Constellation 4K',
fairlightAudio: {
...ModelSpecConstellationHD1ME.fairlightAudio!,
audioRouting: true,
},
}
5 changes: 5 additions & 0 deletions src/models/constellation4K2Me.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable @typescript-eslint/no-non-null-assertion */
import type { ModelSpec } from './types.js'
// import { Enums } from 'atem-connection'
import { ModelSpecConstellationHD2ME } from './constellationHd2Me.js'
Expand All @@ -6,4 +7,8 @@ export const ModelSpecConstellation4K2ME: ModelSpec = {
...ModelSpecConstellationHD2ME,
id: 29 as any, // Enums.Model.Constellation4K2ME,
label: '2 M/E Constellation 4K',
fairlightAudio: {
...ModelSpecConstellationHD2ME.fairlightAudio!,
audioRouting: true,
},
}
5 changes: 5 additions & 0 deletions src/models/constellation4K4Me.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable @typescript-eslint/no-non-null-assertion */
import type { ModelSpec } from './types.js'
import { Enums } from 'atem-connection'
import { ModelSpecConstellationHD4ME } from './constellationHd4Me.js'
Expand All @@ -12,4 +13,8 @@ export const ModelSpecConstellation4K4ME: ModelSpec = {
clips: 4,
captureStills: true,
},
fairlightAudio: {
...ModelSpecConstellationHD4ME.fairlightAudio!,
audioRouting: true,
},
}
1 change: 1 addition & 0 deletions src/models/constellation8kAsHdOr4k.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1025,6 +1025,7 @@ export const ModelSpecConstellationAsHDOr4K: ModelSpec = {
],
fairlightAudio: {
monitor: 'split',
audioRouting: true,
inputs: [
{
id: 1,
Expand Down
1 change: 1 addition & 0 deletions src/models/constellation8kas8k.ts
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,7 @@ export const ModelSpecConstellation8KAs8K: ModelSpec = {
],
fairlightAudio: {
monitor: 'split',
audioRouting: true,
inputs: [
{
id: 1,
Expand Down
1 change: 1 addition & 0 deletions src/models/constellationHd1Me.ts
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,7 @@ export const ModelSpecConstellationHD1ME: ModelSpec = {
],
fairlightAudio: {
monitor: 'split',
audioRouting: false,
inputs: [
{
id: 1,
Expand Down
1 change: 1 addition & 0 deletions src/models/constellationHd2Me.ts
Original file line number Diff line number Diff line change
Expand Up @@ -517,6 +517,7 @@ export const ModelSpecConstellationHD2ME: ModelSpec = {
],
fairlightAudio: {
monitor: 'split',
audioRouting: false,
inputs: [
{
id: 1,
Expand Down
1 change: 1 addition & 0 deletions src/models/constellationHd4Me.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1025,6 +1025,7 @@ export const ModelSpecConstellationHD4ME: ModelSpec = {
],
fairlightAudio: {
monitor: 'split',
audioRouting: false,
inputs: [
{
id: 1,
Expand Down
1 change: 1 addition & 0 deletions src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ export function GetParsedModelSpec({
fairlightAudio: fairlight
? {
monitor: fairlight.monitor ? 'split' : null,
audioRouting: !!fairlight.audioRouting,
inputs: compact(
Object.entries(fairlight.inputs).map(([id, ch]) => {
if (!ch?.properties) return undefined
Expand Down
1 change: 1 addition & 0 deletions src/models/mini.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ export const ModelSpecMini: ModelSpec = {
],
fairlightAudio: {
monitor: null,
audioRouting: false,
inputs: [
{
id: 1,
Expand Down
1 change: 1 addition & 0 deletions src/models/miniextreme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ export const ModelSpecMiniExtreme: ModelSpec = {
recordISO: false,
fairlightAudio: {
monitor: 'split',
audioRouting: false,
inputs: [
{
id: 1,
Expand Down
1 change: 1 addition & 0 deletions src/models/sdi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ export const ModelSpecSDI: ModelSpec = {
],
fairlightAudio: {
monitor: null,
audioRouting: false,
inputs: [
{
id: 1,
Expand Down
1 change: 1 addition & 0 deletions src/models/sdiextremeiso.ts
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,7 @@ export const ModelSpecSDIExtremeISO: ModelSpec = {
recordISO: true,
fairlightAudio: {
monitor: 'split',
audioRouting: false,
inputs: [
{
id: 1,
Expand Down
1 change: 1 addition & 0 deletions src/models/tvs4k8.ts
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,7 @@ export const ModelSpecTVS4K8: ModelSpec = {
recordISO: false,
fairlightAudio: {
monitor: 'split',
audioRouting: true,
inputs: [
{
id: 1,
Expand Down
1 change: 1 addition & 0 deletions src/models/tvshd8.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ export const ModelSpecTVSHD8: ModelSpec = {
recordISO: false,
fairlightAudio: {
monitor: 'split',
audioRouting: true,
inputs: [
{
id: 1,
Expand Down
1 change: 1 addition & 0 deletions src/models/tvspro4k.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ export const ModelSpecTVSPro4K: ModelSpec = {
],
fairlightAudio: {
monitor: 'combined',
audioRouting: false,
inputs: [
{
id: 1,
Expand Down
1 change: 1 addition & 0 deletions src/models/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ export interface ModelSpec {
}
fairlightAudio?: {
monitor: 'combined' | 'split' | null
audioRouting: boolean
inputs: Array<{
id: number
portType: Enums.ExternalPortType
Expand Down

0 comments on commit 93ae7bb

Please sign in to comment.