def METHOD_NAME(self, msg):
    timestamp = msg[0]
    responseTime = time.time() * 1000 - timestamp
    data = msg[1]
    perf = msg[2]
    print(f"RT:{responseTime}msec", perf)
    unpackedData = struct.unpack('<%sh' % (len(data) // struct.calcsize('<h')), data)
    data = np.array(unpackedData)
    data = data * GAIN
    data = struct.pack('<%sh' % len(data), *data)
    if self.file_output_stream != None:
        self.file_output_stream.write(data)
    if self.audio_output_stream != None:
        self.audio_output_stream.write(data)