Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

inputMixOption does not work on the atem mini #101

Closed
DPCLive opened this issue Feb 23, 2021 · 3 comments
Closed

inputMixOption does not work on the atem mini #101

DPCLive opened this issue Feb 23, 2021 · 3 comments

Comments

@DPCLive
Copy link

DPCLive commented Feb 23, 2021

  • I'm submitting a ...

[x ] bug report
[ ] feature request
[ ] question about the decisions made in the repository
[x ] question about how to use this project

  • Summary
    Good morning,
    Despite several tests, we are unable to change the inputMixOption to a mini atem.

Sorry for my english, i'm french

  • Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. StackOverflow, personal fork, etc.)**

Here is our code used:

const Atem = require('atem-connection')
const myAtem = new Atem()
myAtem.on('info', console.log)
myAtem.on('error', console.error)

myAtem.connect('192.168.1.116')

myAtem.on('connected', () => {
myAtem.changeProgramInput(2).then(() => {
// Fired once the atem has acknowledged the command
// Note: the state likely hasnt updated yet, but will follow shortly
console.log('Program input set')

})
myAtem.setAudioMixerInputMixOption(1, 2).then(() => {
    console.log('test')
})

})

@Julusian
Copy link
Member

The mini has the fairlight audio mixer not the classic mixer.
Instead you can do it with something like:

atem.setFairlightAudioMixerSourceProps(1, -256, { mixOption: 2 })

The -256 is the source id. I have not seen enough of a pattern to identify/translate those, so you are best to check the state object to see what it has. The sourceId will vary depending on the mode of the input (stereo/mono/dual-mono)

@DPCLive
Copy link
Author

DPCLive commented Feb 23, 2021

Thank you very much @Julusian for your answer. When I read "myAtem.state.fairlight.inputs", I get this:
{ '1': { sources: { '-65280': [Object] }, properties: { inputType: 0, externalPortType: 2, supportedConfigurations: [Array], activeConfiguration: 2, supportedInputLevels: [], activeInputLevel: 0 } }, '2': { sources: { '-65280': [Object] }, properties: { inputType: 0, externalPortType: 2, supportedConfigurations: [Array], activeConfiguration: 2, supportedInputLevels: [], activeInputLevel: 0 } }, '3': { sources: { '-65280': [Object] }, properties: { inputType: 0, externalPortType: 2, supportedConfigurations: [Array], activeConfiguration: 2, supportedInputLevels: [], activeInputLevel: 0 } }, '4': { sources: { '-65280': [Object] }, properties: { inputType: 0, externalPortType: 2, supportedConfigurations: [Array], activeConfiguration: 2, supportedInputLevels: [], activeInputLevel: 0 } }, '1301': { sources: { '-65280': [Object] }, properties: { inputType: 2, externalPortType: 512, supportedConfigurations: [Array], activeConfiguration: 2, supportedInputLevels: [Array], activeInputLevel: 1 } }, '1302': { sources: { '-65280': [Object] }, properties: { inputType: 2, externalPortType: 512, supportedConfigurations: [Array], activeConfiguration: 2, supportedInputLevels: [Array], activeInputLevel: 1 } } }

@DPCLive
Copy link
Author

DPCLive commented Feb 24, 2021

I allow myself to inform you that everything is working. Thank you for your help and for this great lib.

@DPCLive DPCLive closed this as completed Feb 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants