Xojo Conferences
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

PortAudioStreamParametersMBS class

Type Topic Plugin Version macOS Windows Linux Console & Web iOS
class Audio MBS Audio Plugin 7.0 Yes Yes Yes Yes No
Function: Parameters for one direction (input or output) of a stream.

Feedback, Comments & Corrections

Sample Formats

Constant Value Description
paCustomFormat 65536 Custom format. Not supported by plugin.
paFloat32 1 Uses +1.0 and -1.0 as the maximum and minimum respectively.
paInt16 8 Signed 16 bit.
paInt24 4 Packed 24 bit format
paInt32 2 Signed 32 bit.
paInt8 16 8 bit integer.
paNonInterleaved &h80000000 Non interleaved.
The paNonInterleaved flag indicates that audio data is passed as an array of pointers to separate buffers, one buffer for each channel. Usually, when this flag is not used, audio data is passed as a single buffer with all channels interleaved.
paNonInterleavedFloat32 &h80000001 Non interleaved, Uses +1.0 and -1.0 as the maximum and minimum respectively.
paNonInterleavedInt16 &h80000008 Non interleaved, signed 16 bit.
paNonInterleavedInt24 &h80000004 Non interleaved, Packed 24 bit format
paNonInterleavedInt32 &h80000002 Non interleaved, signed 32 bit.
paNonInterleavedInt8 &h80000010 Non interleaved, 8 bit integer.
paNonInterleavedUInt8 &h80000020 Non interleaved, unsigned 8 bit format where 128 is considered "ground".
paUInt8 32 unsigned 8 bit format where 128 is considered "ground"

This class has no sub classes.

Some methods using this class:

  • PortAudioMBS.IsFormatSupported(input as PortAudioStreamParametersMBS, output as PortAudioStreamParametersMBS, sampleRate as Double) as Integer
  • PortAudioStreamBufferedMBS.OpenStream(outputParameters as PortAudioStreamParametersMBS, sampleRate as Double, framesPerBuffer as Integer, streamFlags as Integer) as Integer
  • PortAudioStreamMBS.OpenStream(inputParameters as PortAudioStreamParametersMBS, outputParameters as PortAudioStreamParametersMBS, sampleRate as Double, framesPerBuffer as Integer, streamFlags as Integer) as Integer
  • PortAudioStreamRecorderMBS.OpenStream(inputParameters as PortAudioStreamParametersMBS, sampleRate as Double, framesPerBuffer as Integer, streamFlags as Integer) as Integer

Some examples which use this class:


The items on this page are in the following plugins: MBS Audio Plugin.


PortAudioStreamMBS   -   PortAudioStreamRecorderMBS




Links
MBS Xojo tutorial videos