Platforms to show: All Mac Windows Linux Cross-Platform

SCNAudioPlayerMBS 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 controller for playback of a positional audio source in a SceneKit scene.

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

// now build your nodes
dim someNode as SCNNodeMBS

// show scene
MyView.scene = MyScene

// and add player to plays
Notes: An SCNAudioPlayerMBS object controls playback of a positional audio source in a SceneKit scene. To use positional audio, first create a reusable SCNAudioSourceMBS or AVAudioNodeMBS object to provide an audio stream. Then, create an audio player to control the playback of that audio source. Finally, attach the audio player to an SCNNodeMBS object for spatialized 3D audio playback 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:

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

SCNActionMBS   -   SCNAudioSourceMBS

Feedback: Report problem or ask question.

The biggest plugin in space...

Start Chat