Skip to content

Unable to use audiomixer API #6

@ethan-ou

Description

@ethan-ou

After connecting to an ATEM and successfully switching video sources, I'm finding I'm unable to control any audio sources, including volume, enable and disable etc.

Some example code I'm using for the audio mixer:

import PyATEMMax
import time
switcher = PyATEMMax.ATEMMax()
switcher.connect("192.168.8.172")
switcher.waitForConnection(infinite=False)

switcher.setAudioMixerInputMixOption(switcher.atem.audioSources.mic1, switcher.atem.audioMixerInputMixOptions.on) # Fails to turn on microphone
switcher.setAudioMixerInputVolume(switcher.atem.audioSources.mic1, 3.0)
print("Mic 1 Volume 1:", switcher.audioMixer.input["mic1"].volume) # Prints 0, when should be 3

time.sleep(1)

switcher.setAudioMixerInputMixOption(switcher.atem.audioSources.mic1, switcher.atem.audioMixerInputMixOptions.off) # Fails to turn off microphone
switcher.setAudioMixerInputVolume(switcher.atem.audioSources.mic1, 0.0)
print("Mic 1 Volume 2:", switcher.audioMixer.input["mic1"].volume) # Prints 0

When viewing the ATEM software control, I can also verify none of the values are changing as expected.

Let me know if I've written the code incorrectly or whether this is an internal bug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions