Platforms to show: All Mac Windows Linux Cross-Platform

CoreAudioPlayerMBS class

Type Topic Plugin Version macOS Windows Linux iOS Targets
class Audio MBS MacOSX Plugin 4.0 ✅ Yes ❌ No ❌ No ✅ Yes All
A class to play sounds from a memoryblock using CoreAudio.

This class uses an internal buffer of around 100000 samples which when played with a samplerate of 8000 will play for 10 seconds.
The music stops playing after this object is destroyed.
Mac OS X is required.

  • 8 properties
  • 15 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 Close
    • method FreeSpace as Integer
    • method HardwareNumberOfChannels as Integer
    • method HardwareSampleRate as single
    • method HasFreeSpace as boolean
    • 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
    • method Start as boolean
    • method Stop

This class has no sub classes.

Some examples using this class:

Blog Entries


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


CoreAudioMBS   -   CoreTextMBS


The biggest plugin in space...