Platforms to show: All Mac Windows Linux Cross-Platform

SCNAudioSourceMBS class

Type Topic Plugin Version macOS Windows Linux iOS Targets
class SceneKit MBS Mac64bit Plugin 22.3 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Function: A simple, reusable audio source—music or sound effects loaded from a file—for use in positional audio playback.
Example:

Dim file As FolderItem = SpecialFolder.Desktop.Child("Laser.wav")
audioSource = New SCNAudioSourceMBS(file)
audioSource.Volume = 1.0
audioSource.Loops = true
audioSource.load

// now use for SCNAudioPlayerMBS class
Notes: To create positional audio effects, create an SCNAudioPlayerMBS object from the audio source to control playback, and add that player object to an SCNNodeMBS object in your scene. SceneKit then automatically spatializes 3D audio effects based on the position of that node relative to the scene’s audioListener node.

This class has no sub classes.

Some methods using this class:

Some properties using for this class:


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


SCNAudioPlayerMBS   -   SCNAvoidOccluderConstraintMBS

Feedback: Report problem or ask question.

The biggest plugin in space...


Start Chat