Platforms to show: All Mac Windows Linux Cross-Platform

PortAudioStreamMBS class

Super class: PortAudioStreamBaseMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
class Audio MBS Audio Plugin 6.0 ✅ Yes ✅ Yes ✅ Yes ❌ No All
A single PortAudioStreamMBS can provide multiple channels of real-time streaming audio input and output to a client application.

A stream provides access to audio hardware represented by one or more devices. Depending on the underlying Host API, it may be possible to open multiple streams using the same device, however this behavior is implementation defined. Portable applications should assume that a device may be simultaneously used by at most one PortAudioStreamMBS.

You can use this class in two ways:

  • with Callback event: Get event call when new data is needed or received.
  • without Callback event: Use read/write methods to access buffers and move samples.
Subclass of the PortAudioStreamBaseMBS class.

  • 2 events
    • event Callback(InputBuffer as memoryblock, outputBuffer as memoryblock, FrameCount as Integer, inputBufferAdcTime as Double, currentTime as Double, outputBufferDacTime as Double, statusFlags as Integer) as Integer
    • event Finished
  • 3 methods

Super class PortAudioStreamBaseMBS

Flags

Constant Value Description
kFlagsClipOff 1 Disable default clipping of out of range samples.
kFlagsDitherOff 2 Disable default dithering.
kFlagsNeverDropInput 4 Flag requests that where possible a full duplex stream will not discard overflowed input samples without calling the stream callback. This flag is only valid for full duplex callback streams and only when used in combination with the paFramesPerBufferUnspecified (0) framesPerBuffer parameter. Using this flag incorrectly results in a paInvalidFlag error being returned from OpenStream and OpenDefaultStream.
kFlagsNoFlag 0 No flags.
kFlagsPlatformSpecificFlags &hFFFF0000 A mask specifying the platform specific bits.
kFlagsPrimeOutputBuffersUsingStreamCallback 8 Call the stream callback to fill initial output buffers, rather than the default behavior of priming the buffers with zeros (silence). This flag has no effect for input-only and blocking read/write streams.

This class has no sub classes.

Some examples using this class:

Blog Entries

Release notes


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


PortAudioStreamInfoMBS   -   PortAudioStreamParametersMBS


The biggest plugin in space...