|
__init__(self,
PA_manager,
rate,
channels,
format,
input=False,
output=False,
input_device_index=None,
output_device_index=None,
frames_per_buffer=1024,
start=True,
input_host_api_specific_stream_info=None,
output_host_api_specific_stream_info=None)
Initialize a stream; this should be called by
PyAudio.open. A stream can either be input, output, or both. |
source code
|
|
|
|
float
|
get_input_latency(self)
Return the input latency. |
source code
|
|
float
|
get_output_latency(self)
Return the input latency. |
source code
|
|
float
|
|
float
|
|
|
|
|
stop_stream(self)
Stop the stream. Once the stream is stopped,
one may not call write or read. However, one may
call start_stream to resume the stream. |
source code
|
|
bool
|
is_active(self)
Returns whether the stream is active. |
source code
|
|
bool
|
is_stopped(self)
Returns whether the stream is stopped. |
source code
|
|
None
|
write(self,
frames,
num_frames=None,
exception_on_underflow=False)
Write samples to the stream. |
source code
|
|
str
|
|
int
|
get_read_available(self)
Return the number of frames that can be read
without waiting. |
source code
|
|
int
|
get_write_available(self)
Return the number of frames that can be written
without waiting. |
source code
|
|