Home | History | Annotate | Download | only in audio

Lines Matching refs:binary

63     def __init__(self, binary, channel, sample_format):
66 @param binary: A string containing binary data. If binary is not None,
67 The samples in binary will be parsed and be filled into
75 if binary:
76 self.read_binary(binary)
79 def read_binary(self, binary):
80 """Reads samples from binary and fills channel_data.
82 Reads samples of fixed width from binary string into a numpy array
85 @param binary: A string containing binary data.
95 np_array = np.fromstring(binary, dtype=np_dtype)