MCPcopy Create free account
hub / github.com/ARM-software/AVH / setMode

Method setMode

interface/vstream/python/vsi_audio.py:87–98  ·  view source on GitHub ↗

Set the mode of the audio stream (input/output). Args: mode: 0 for input, 1 for output. Returns: Current mode value (0=input, 1=output).

(self, mode)

Source from the content-addressed store, hash-verified

85 time.sleep(0.05)
86
87 def setMode(self, mode):
88 """
89 Set the mode of the audio stream (input/output).
90 Args:
91 mode: 0 for input, 1 for output.
92 Returns:
93 Current mode value (0=input, 1=output).
94 """
95 self.conn.send([self.SET_MODE, mode])
96 current_mode = self.conn.recv()
97
98 return current_mode
99
100 def setDevice(self, device):
101 """

Callers 1

wrCONTROLFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected