Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions pyperdeck/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -661,8 +661,9 @@ def configure(
file_format: str = None,
audio_codec: str = None,
play_option: str = None,
audio_input_channels: int = None,
) -> None:
"""Change the configuration of the Hyperdeck. Timecode, audio channels, record triggers, file naming, and genlock settings are unimplemented.
"""Change the configuration of the Hyperdeck. Timecode, record triggers, file naming, and genlock settings are unimplemented.

Parameters
----------
Expand All @@ -674,6 +675,8 @@ def configure(
Recording file format/codec configuration for future recordings, by default unchanged
audio_codec : str, optional
Recording codec of the audio signal for future recordings, by default unchanged
audio input channels : int, optional
Number of audio channels to record, valid values are 2 4 8 16, by default unchanged
play_option : str
Sets the output frame when playback stops (one of lastframe, nextframe, or black), by default unchanged
"""
Expand All @@ -686,6 +689,8 @@ def configure(
command += f'file format: {file_format} '
if audio_codec:
command += f'audio codec: {audio_codec} '
if audio_input_channels:
command += f'audio input channels: {audio_input_channels} '
if command != 'configuration: ':
self._send(command[:-1])

Expand All @@ -712,4 +717,4 @@ def reboot(self) -> None:
"""Reboot the Hyperdeck, reconnection happens automatically.
"""
self._send('reboot')