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

Method configureStream

interface/vstream/python/vsi_audio.py:126–139  ·  view source on GitHub ↗

Configure the audio stream parameters on the server. Args: channels: Number of audio channels (1=mono, 2=stereo). sample_rate: Sample rate in Hz (e.g., 44100, 48000). sample_bits: Bit depth (8, 16, 24, 32). Returns: True if con

(self, channels, sample_rate, sample_bits)

Source from the content-addressed store, hash-verified

124 return filename_valid
125
126 def configureStream(self, channels, sample_rate, sample_bits):
127 """
128 Configure the audio stream parameters on the server.
129 Args:
130 channels: Number of audio channels (1=mono, 2=stereo).
131 sample_rate: Sample rate in Hz (e.g., 44100, 48000).
132 sample_bits: Bit depth (8, 16, 24, 32).
133 Returns:
134 True if configuration is valid, False otherwise.
135 """
136 self.conn.send([self.STREAM_CONFIGURE, channels, sample_rate, sample_bits])
137 configuration_valid = self.conn.recv()
138
139 return configuration_valid
140
141 def enableStream(self):
142 """

Callers 1

wrCONTROLFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected