Platforms to show: All Mac Windows Linux Cross-Platform
WindowsPlayerMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | Audio | MBS Audio Plugin | 15.0 | ❌ No | ✅ Yes | ❌ No | ❌ No | All |
This is a little class to play a MP3 file (or data in memory).
Written for 44100 Hz, 2 channel MP3 files.
With plugin version 16.1 this class should work fine with any sample rate, any channel count and other formats as long as Microsoft drivers support them. Like ASF, WMF and WMV.
- 12 properties
- property Buffer as MemoryBlock
- property BufferLength as Integer
- property ChannelCount as Integer
- property ChannelMask as Integer
- property DeviceID as Integer
- property Duration as Double
- property Lasterror as Integer
- property Pitch as Double
- property Position as Double
- property Rate as Double
- property SampleRate as Integer
- property Volume as Double
- shared property DeviceCount as Integer
- 9 methods
- method Constructor(data as MemoryBlock)
- method Constructor(data as String)
- method Constructor(file as folderitem)
- method GetVolume(byref VolumeLeft as Double, byref VolumeRight as Double)
- method Pause
- method Play(offset as Double = 0.0)
- method Resume
- method SetVolume(VolumeLeft as Double, VolumeRight as Double)
- method Stop
- shared method Device(index as Integer) as WindowsPlayerDeviceMBS
This class has no sub classes.
Some examples using this class:
Blog Entries
- MBS Xojo Plugins, version 24.2pr4
- New in the MBS Xojo Plugins 20.0
- MonkeyBread Software Releases the MBS Xojo Plugins in version 20.0
- MBS Xojo Plugins, version 20.0pr7
- MBS Xojo Plugins, version 17.4pr3
- MBS Releases the MBS Xojo / Real Studio plug-ins in version 16.1
- MBS Xojo / Real Studio Plugins, version 16.1pr2
- MBS Xojo / Real Studio Plugins, version 15.2pr8
- MonkeyBread Software Releases the MBS Xojo / Real Studio plug-ins in version 15.0
- MBS Xojo / Real Studio Plugins, version 15.0pr8
Release notes
- Version 24.2
- Fixed a possible buffer overrun in WindowsPlayerMBS class.
- Version 20.0
- Added ChannelMask and DeviceID properties to WindowsPlayerMBS class.
- Version 17.4
- Removed direct dependency for Wmvcore.dll from WindowsPlayerMBS class. If it's missing player can't work, but at least the plugin can be loaded.
The items on this page are in the following plugins: MBS Audio Plugin.
WindowsPlayerDeviceMBS - WindowsPowerStateMBS