示例#1
0
    def init(self, args):
        # The feedback to the user is shown by the feedback() method,
        # in a different process. To share data between the both
        # processes we will use the Value class of multiprocessing.
        self.sent_messages_counter = Value('i', 0)
        self.received_messages_counter = Value('i', 0)
        self.sent_bytes_counter = Value('i', 0)
        self.received_bytes_counter = Value('i', 0)

        Intercom_buffer.init(self, args)
        self.packet_format = f"!HB{self.frames_per_chunk//8}B" # Quitar
        self.number_of_bitplanes = 16
        self.number_of_bitplanes_to_send = self.number_of_bitplanes * self.number_of_channels

        print("Intercom_bitplanes: transmitting by bitplanes ...")
示例#2
0
 def init(self, args):
     Intercom_buffer.init(self, args)
     self.packet_format = f"!HB{self.frames_per_chunk//8}B"
示例#3
0
 def init(self, args):
     Intercom_buffer.init(self, args)
示例#4
0
 def init(self, args):
     Intercom_buffer.init(self, args)
     self.packet_format = f"!HB{self.frames_per_chunk//8}B"
     self.number_of_bitplanes_to_send = 16 * self.number_of_channels
示例#5
0
 def init(self, args):
     Intercom_buffer.init(self, args)
     self.bitplaneregister = np.zeros(self.chunks_to_buffer, dtype="int16")
     self.packet_format = "!BH{}B".format(
         (self.samples_per_chunk // 8) // self.number_of_channels)
示例#6
0
    def init(self, args):
        self.bits_per_number = 16

        Intercom_buffer.init(self, args)

        self.packet_format = f"!HB{self.samples_per_chunk // 8 // self.number_of_channels}h" # Chunk index; Column index; Data