Home | Trees | Index | Help |
|
---|
Module pyaudio :: Class PyAudio |
|
Use this class to open and close streams.
Method Summary | |
---|---|
Initialize PortAudio. | |
Terminate PortAudio. | |
Stream Management | |
Open a new stream. | |
Close a stream. | |
Host API | |
int |
Return the number of PortAudio Host APIs. |
dict |
Return a dictionary containing the default Host API parameters. |
dict |
Return a dictionary containing the Host API parameters for the host API specified by the host_api_type . |
dict |
Return a dictionary containing the Host API parameters for the host API specified by the host_api_index . |
dict |
Return a dictionary containing the Device parameters for a given Host API's n'th device. |
Device API | |
int |
Return the number of PortAudio Host APIs. |
bool |
Check to see if specified device configuration is supported. |
dict |
Return the default input Device parameters as a dictionary. |
dict |
Return the default output Device parameters as a dictionary. |
dict |
Return the Device parameters for device specified in device_index as a dictionary. |
Stream Format Conversion | |
int |
Returns the size (in bytes) for the specified sample format (a PaSampleFormat constant). |
Returns a PortAudio format constant for the specified width . |
Method Details |
---|
open(self, *args, **kwargs)Open a new stream. See constructor for
|
close(self, stream)Close a stream. Typically use
|
get_host_api_count(self)Return the number of PortAudio Host APIs.
|
get_default_host_api_info(self)Return a dictionary containing the default Host API parameters. The keys of the dictionary mirror the data fields of PortAudio's PaHostApiInfo structure.
|
get_host_api_info_by_type(self, host_api_type)Return a dictionary containing the Host API parameters for the
host API specified by the
|
get_host_api_info_by_index(self, host_api_index)Return a dictionary containing the Host API parameters for the
host API specified by the
|
get_device_info_by_host_api_device_index(self, host_api_index, host_api_device_index)Return a dictionary containing the Device parameters for a given Host API's n'th device. The keys of the dictionary mirror the data fields of PortAudio's PaDeviceInfo structure.
|
get_device_count(self)Return the number of PortAudio Host APIs.
|
is_format_supported(self, rate, input_device=None, input_channels=None, input_format=None, output_device=None, output_channels=None, output_format=None)Check to see if specified device configuration is supported.
|
get_default_input_device_info(self)Return the default input Device parameters as a dictionary. The keys of the dictionary mirror the data fields of PortAudio's PaDeviceInfo structure.
|
get_default_output_device_info(self)Return the default output Device parameters as a dictionary. The keys of the dictionary mirror the data fields of PortAudio's PaDeviceInfo structure.
|
get_device_info_by_index(self, device_index)Return the Device parameters for device specified in
|
get_sample_size(self, format)Returns the size (in bytes) for the specified
sample
|
get_format_from_width(self, width, unsigned=True)Returns a PortAudio format constant for
the specified
|
__init__(self)
|
terminate(self)Terminate PortAudio.
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Thu May 25 13:09:00 2006 | http://epydoc.sf.net |