Platforms to show: All Mac Windows Linux Cross-Platform

Back to WindowsPlayerMBS class.

WindowsPlayerMBS.Buffer as MemoryBlock

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Audio MBS Audio Plugin 16.1 ❌ No ✅ Yes ❌ No ❌ No All
The buffer with audio samples.

You get a copy of the buffer as memoryblock.
Please use BufferLength, SampleRate and ChannelCount to read it.
Data is always 16 bit with 2 * ChannelCount * SampleRate bytes per second.
(Read only property)

WindowsPlayerMBS.BufferLength as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Audio MBS Audio Plugin 16.1 ❌ No ✅ Yes ❌ No ❌ No All
The buffer length for audio samples.

(Read only property)

WindowsPlayerMBS.ChannelCount as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Audio MBS Audio Plugin 16.1 ❌ No ✅ Yes ❌ No ❌ No All
The channel count of the audio file.

(Read only property)

WindowsPlayerMBS.ChannelMask as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Audio MBS Audio Plugin 20.0 ❌ No ✅ Yes ❌ No ❌ No All
The channel mask.
Example
dim p as WindowsPlayerMBS // your player
p.DeviceID = 3 // 4th device
p.ChannelMask = 1 // left channel

1 is left, 2 is right, 3 is center and so on.
Default is zero for automatic.

see list here:
https://docs.microsoft.com/en-us/previous-versions/ms713496%28v%3dvs.85%29
(Read and Write property)

WindowsPlayerMBS.DeviceID as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Audio MBS Audio Plugin 20.0 ❌ No ✅ Yes ❌ No ❌ No All
The device ID to use.
Example
dim p as WindowsPlayerMBS // your player
p.DeviceID = 3 // 4th device
p.ChannelMask = 1 // left channel

Please set before calling Play method.
Default is -1 to use WAVE MAPPER device.
(Read and Write property)

WindowsPlayerMBS.Duration as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Audio MBS Audio Plugin 15.0 ❌ No ✅ Yes ❌ No ❌ No All
Returns duration of sound in seconds.

(Read only property)

WindowsPlayerMBS.Lasterror as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Audio MBS Audio Plugin 15.0 ❌ No ✅ Yes ❌ No ❌ No All
The last error code.

(Read and Write property)

WindowsPlayerMBS.Pitch as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Audio MBS Audio Plugin 15.0 ❌ No ✅ Yes ❌ No ❌ No All
The pitch for the waveform-audio output device.

Default 1.0.
pass e.g. 0.5 for half pitch or 2.0 to double pitch.
(Read and Write property)

WindowsPlayerMBS.Position as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Audio MBS Audio Plugin 15.0 ❌ No ✅ Yes ❌ No ❌ No All
Returns current position.

(Read only property)

WindowsPlayerMBS.Rate as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Audio MBS Audio Plugin 15.0 ❌ No ✅ Yes ❌ No ❌ No All
The rate for the waveform-audio output device.

Default 1.0.
pass e.g. 0.5 for half speed or 2.0 to double speed.
(Read and Write property)

WindowsPlayerMBS.SampleRate as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Audio MBS Audio Plugin 16.1 ❌ No ✅ Yes ❌ No ❌ No All
The sample rate of the audio file.

(Read only property)

WindowsPlayerMBS.Volume as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Audio MBS Audio Plugin 15.0 ❌ No ✅ Yes ❌ No ❌ No All
The volume setting.

Range is from 0.0 for no sound to 1.0 for full sound.
(Read and Write property)

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


The biggest plugin in space...