Module pyaudio :: Class PaMacCoreStreamInfo
[frames] | no frames]

Class PaMacCoreStreamInfo

source code

Mac OS X-only: PaMacCoreStreamInfo is a PortAudio Host API Specific Stream Info data structure for specifying Mac OS X-only settings. Instantiate this class (if desired) and pass the instance as the argument in PyAudio.open to parameters input_host_api_specific_stream_info or output_host_api_specific_stream_info. (See Stream.\_\_init\_\_.)

Note: Mac OS X only.

Instance Methods
 
__init__(self, flags=None, channel_map=None)
Initialize with flags and channel_map.
source code
    Settings
int
get_flags(self)
Return the flags set at instantiation.
source code
tuple or None
get_channel_map(self)
Return the channel map set at instantiation.
source code
Class Variables
    Flags (constants)
  paMacCoreChangeDeviceParameters = 1
  paMacCoreFailIfConversionRequired = 2
  paMacCoreConversionQualityMin = 256
  paMacCoreConversionQualityMedium = 512
  paMacCoreConversionQualityLow = 768
  paMacCoreConversionQualityHigh = 1024
  paMacCoreConversionQualityMax = 0
  paMacCorePlayNice = 0
  paMacCorePro = 1
  paMacCoreMinimizeCPUButPlayNice = 256
  paMacCoreMinimizeCPU = 257
Method Details

__init__(self, flags=None, channel_map=None)
(Constructor)

source code 
Initialize with flags and channel_map. See PortAudio documentation for more details on these parameters; they are passed almost verbatim to the PortAudio library.
Parameters:
  • flags - paMacCore* flags OR'ed together. See PaMacCoreStreamInfo.
  • channel_map - An array describing the channel mapping. See PortAudio documentation for usage.