Platforms to show: All Mac Windows Linux Cross-Platform

Back to CoreAudioMBS class.

Previous items

CoreAudioMBS.kAudioDevicePropertySupportsMixing as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Audio MBS MacOSX Plugin 4.0 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the constants for CoreAudio.

(Read only property)

CoreAudioMBS.kAudioDevicePropertyTransportType as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Audio MBS MacOSX Plugin 4.0 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the constants for CoreAudio.

(Read only property)

CoreAudioMBS.kAudioDevicePropertyUsesVariableBufferFrameSizes as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Audio MBS MacOSX Plugin 4.0 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the constants for CoreAudio.

(Read only property)

CoreAudioMBS.kAudioDevicePropertyVolumeDecibels as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Audio MBS MacOSX Plugin 4.0 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the constants for CoreAudio.

(Read only property)

CoreAudioMBS.kAudioDevicePropertyVolumeDecibelsToScalar as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Audio MBS MacOSX Plugin 4.0 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the constants for CoreAudio.

(Read only property)

CoreAudioMBS.kAudioDevicePropertyVolumeRangeDecibels as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Audio MBS MacOSX Plugin 4.0 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the constants for CoreAudio.

(Read only property)

CoreAudioMBS.kAudioDevicePropertyVolumeScalar as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Audio MBS MacOSX Plugin 4.0 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the constants for CoreAudio.
Example

Dim c As New CoreAudioMBS

Dim DefaultOutputDeviceMem As MemoryBlock = c.AudioHardwareGetPropertyMemory(c.kAudioHardwarePropertyDefaultOutputDevice)
Dim DefaultOutputDeviceID As Integer = DefaultOutputDeviceMem.Long(0)

Dim mem1 As MemoryBlock = c.AudioDeviceGetPropertyMemory(DefaultOutputDeviceID, 0, False, c.kAudioDevicePropertyVolumeScalar)
Dim VolumeScalar As Single = mem1.SingleValue(0)

// set volume to 50%
Dim VolumeScalar2 As Single = 0.5
Dim mem2 As New MemoryBlock(4)
mem2.SingleValue(0) = VolumeScalar2

c.AudioDeviceSetPropertyMemory(DefaultOutputDeviceID, Nil, 0, False, c.kAudioDevicePropertyVolumeScalar, mem2, 0, mem2.Size)

// now query again
Dim mem3 As MemoryBlock = c.AudioDeviceGetPropertyMemory(DefaultOutputDeviceID, 0, False, c.kAudioDevicePropertyVolumeScalar)
Dim VolumeScalar3 As Single = mem3.SingleValue(0)

Break

(Read only property)

CoreAudioMBS.kAudioDevicePropertyVolumeScalarToDecibels as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Audio MBS MacOSX Plugin 4.0 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the constants for CoreAudio.

(Read only property)

Previous items

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


The biggest plugin in space...