Xojo Conferences
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

PortAudioStreamBufferedMBS class

Super class: PortAudioStreamBaseMBS

Type Topic Plugin Version macOS Windows Linux Console & Web iOS
class Audio MBS Audio Plugin 7.4 Yes Yes Yes Yes No
Function: A portaudio stream class to use an internal buffer to feed its callback.
Notes:
Currently this class allows you to add 200 buffers to the internal playlist. The buffer size is not limited. FreeSpace returns you the number of buffers you have currently. Buffers are freed after they are played.
Subclass of the PortAudioStreamBaseMBS class.

Feedback, Comments & Corrections

  • event Finished
  • 4 properties
  • 12 methods
    • method AddAudio(Data as memoryblock, offsetBytes as Integer=0, countBytes as Integer=0, BitSize as Integer=16, ClearBuffers as boolean=false) as boolean
    • method AddAudioStereo(Data1 as memoryblock, Data2 as memoryblock, offsetBytes as Integer=0, countBytes as Integer=0, BitSize as Integer=16, ClearBuffers as boolean=false) as boolean
    • method AddFloatAudio(FloatData as memoryblock, offsetBytes as Integer=0, countBytes as Integer=0, ClearBuffers as boolean=false) as boolean
    • method AddFloatAudioStereo(FloatData1 as memoryblock, FloatData2 as memoryblock, offsetBytes as Integer=0, countBytes as Integer=0, ClearBuffers as boolean=false) as boolean
    • method FreeSpace as Integer
    • method HasFreeSpace as boolean
    • method OpenDefaultStream(numOutputChannels as Integer, sampleRate as Double) as Integer
    • method OpenStream(outputParameters as PortAudioStreamParametersMBS, sampleRate as Double, framesPerBuffer as Integer, streamFlags as Integer) as Integer
    • method PlayAudio(Data as memoryblock, offsetBytes as Integer=0, countBytes as Integer=0, BitSize as Integer=16, ClearBuffers as boolean=false) as boolean
    • method PlayAudioStereo(Data1 as memoryblock, Data2 as memoryblock, offsetBytes as Integer=0, countBytes as Integer=0, BitSize as Integer=16, ClearBuffers as boolean=false) as boolean
    • method PlayFloatAudio(FloatData as memoryblock, offsetBytes as Integer=0, countBytes as Integer=0, ClearBuffers as boolean=false) as boolean
    • method PlayFloatAudioStereo(FloatData1 as memoryblock, FloatData2 as memoryblock, offsetBytes as Integer=0, countBytes as Integer=0, ClearBuffers as boolean=false) as boolean

Super class PortAudioStreamBaseMBS

This class has no sub classes.

Some examples which use this class:


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


PortAudioStreamBaseMBS   -   PortAudioStreamInfoMBS




Links
MBS Xojo Chart Plugins