예제 #1
0
 def encode_float(self, data, frame_size, decode_fec=False):
     return encoder.encode_float(self._state, data, frame_size, 4000)
예제 #2
0
 def test_encode_float(self):
     enc = encoder.create(48000, 2, constants.APPLICATION_AUDIO)
     data = chr(0)*ctypes.sizeof(ctypes.c_float)*2*960
     encoder.encode_float(enc, data, 960, len(data))
     encoder.destroy(enc)
예제 #3
0
 def test_encode_float(self):
     enc = encoder.create(48000, 2, constants.APPLICATION_AUDIO)
     data = chr(0) * ctypes.sizeof(ctypes.c_float) * 2 * 960
     encoder.encode_float(enc, data, 960, len(data))
     encoder.destroy(enc)