Platforms to show: All Mac Windows Linux Cross-Platform

PortAudioStreamRecorderMBS class

Super class: PortAudioStreamBaseMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
class Audio MBS Audio Plugin 9.1 ✅ Yes ✅ Yes ✅ Yes ❌ No All
A portaudio stream class to use an internal buffer to record audio.

This class has a ring buffer to store the audio samples which they are being recorded. Your application can in a timer or thread process this samples.
Subclass of the PortAudioStreamBaseMBS class.

Super class PortAudioStreamBaseMBS


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

  • Version 24.1
    • Fixed PortAudioStreamRecorderMBS to enforce sample format paFloat32 when using OpenStream() to prevent errors later.

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

PortAudioStreamParametersMBS   -   PortMidiDeviceInfoMBS

💬 Ask a question or report a problem
The biggest plugin in space...