Home | Trees | Index | Help |
|
---|
Module pyaudio |
|
pyAudio : Python Bindings for PortAudio v19.
These bindings only support PortAudio blocking mode.
Classes | |
---|---|
PyAudio |
initialize and terminate PortAudio |
Stream |
PortAudio Stream Wrapper. |
Function Summary | |
---|---|
Stream Conversion Convenience Functions | |
int |
Returns the size (in bytes) for the specified sample format (a PaSampleFormat constant). |
Returns a PortAudio format constant for the specified width . | |
PortAudio version | |
str |
Returns portaudio version. |
str |
Returns PortAudio version as a text string. |
Variable Summary | |
---|---|
str |
__author__ = 'Hubert Pham'
|
str |
__version__ = '0.1.0'
|
str |
__revision__ = '$Revision: 6 $'
|
PortAudio Constants | |
list |
PaSampleFormat : A list of all PortAudio PaSampleFormat value constants. |
list |
PaHostApiTypeId : A list of all PortAudio PaHostApiTypeId constants. |
list |
PaErrorCode : A list of all PortAudio PaErrorCode constants. |
PaSampleFormat Values | |
int |
paFloat32 = 1 |
int |
paInt32 = 2 |
int |
paInt24 = 4 |
int |
paInt16 = 8 |
int |
paInt8 = 16 |
int |
paUInt8 = 32 |
int |
paCustomFormat = 65536 |
PaHostApiTypeId Values | |
int |
paInDevelopment = 0 |
int |
paDirectSound = 1 |
int |
paMME = 2 |
int |
paASIO = 3 |
int |
paSoundManager = 4 |
int |
paCoreAudio = 5 |
int |
paOSS = 7 |
int |
paALSA = 8 |
int |
paAL = 9 |
int |
paBeOS = 10 |
int |
paWDMKS = 11 |
int |
paJACK = 12 |
int |
paWASAPI = 13 |
int |
paNoDevice = -1 |
PaErrorCode Values | |
int |
paNoError = 0 |
int |
paNotInitialized = -10000 |
int |
paUnanticipatedHostError = -9999 |
int |
paInvalidChannelCount = -9998 |
int |
paInvalidSampleRate = -9997 |
int |
paInvalidDevice = -9996 |
int |
paInvalidFlag = -9995 |
int |
paSampleFormatNotSupported = -9994 |
int |
paBadIODeviceCombination = -9993 |
int |
paInsufficientMemory = -9992 |
int |
paBufferTooBig = -9991 |
int |
paBufferTooSmall = -9990 |
int |
paNullCallback = -9989 |
int |
paBadStreamPtr = -9988 |
int |
paTimedOut = -9987 |
int |
paInternalError = -9986 |
int |
paDeviceUnavailable = -9985 |
int |
paIncompatibleHostApiSpecificStreamInfo = -9984 |
int |
paStreamIsStopped = -9983 |
int |
paStreamIsNotStopped = -9982 |
int |
paInputOverflowed = -9981 |
int |
paOutputUnderflowed = -9980 |
int |
paHostApiNotFound = -9979 |
int |
paInvalidHostApi = -9978 |
int |
paCanNotReadFromACallbackStream = -9977 |
int |
paCanNotWriteToACallbackStream = -9976 |
int |
paCanNotReadFromAnOutputOnlyStream = -9975 |
int |
paCanNotWriteToAnInputOnlyStream = -9974 |
int |
paIncompatibleStreamHostApi = -9973 |
Function Details |
---|
get_sample_size(format)Returns the size (in bytes) for the specified
sample
|
get_format_from_width(width, unsigned=True)Returns a PortAudio format constant for
the specified
|
get_portaudio_version()Returns portaudio version.
|
get_portaudio_version_text()Returns PortAudio version as a text string.
|
Variable Details |
---|
PaSampleFormatA list of all PortAudio PaSampleFormat value constants. See:
|
PaHostApiTypeIdA list of all PortAudio PaHostApiTypeId constants. See:
|
PaErrorCodeA list of all PortAudio PaErrorCode constants. Typically, error code constants are included in Python exception objects (as the second argument). See:
|
paFloat32
|
paInt32
|
paInt24
|
paInt16
|
paInt8
|
paUInt8
|
paCustomFormat
|
paInDevelopment
|
paDirectSound
|
paMME
|
paASIO
|
paSoundManager
|
paCoreAudio
|
paOSS
|
paALSA
|
paAL
|
paBeOS
|
paWDMKS
|
paJACK
|
paWASAPI
|
paNoDevice
|
paNoError
|
paNotInitialized
|
paUnanticipatedHostError
|
paInvalidChannelCount
|
paInvalidSampleRate
|
paInvalidDevice
|
paInvalidFlag
|
paSampleFormatNotSupported
|
paBadIODeviceCombination
|
paInsufficientMemory
|
paBufferTooBig
|
paBufferTooSmall
|
paNullCallback
|
paBadStreamPtr
|
paTimedOut
|
paInternalError
|
paDeviceUnavailable
|
paIncompatibleHostApiSpecificStreamInfo
|
paStreamIsStopped
|
paStreamIsNotStopped
|
paInputOverflowed
|
paOutputUnderflowed
|
paHostApiNotFound
|
paInvalidHostApi
|
paCanNotReadFromACallbackStream
|
paCanNotWriteToACallbackStream
|
paCanNotReadFromAnOutputOnlyStream
|
paCanNotWriteToAnInputOnlyStream
|
paIncompatibleStreamHostApi
|
__author__
|
__version__
|
__revision__
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Thu May 25 13:09:00 2006 | http://epydoc.sf.net |