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 |
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.
- 2 events
- event DidFinishPlayback
- event WillStartPlayback
- 3 properties
- property audioNode as Variant
- property audioSource as SCNAudioSourceMBS
- property Handle as Integer
- method Constructor(audioSource as SCNAudioSourceMBS)
- 2 shared methods
- shared method audioPlayerWithAVAudioNode(audioNode as Variant) as SCNAudioPlayerMBS
- shared method audioPlayerWithSource(audioSource as SCNAudioSourceMBS) as SCNAudioPlayerMBS
This class has no sub classes.
Some methods using this class:
- SCNNodeMBS.addAudioPlayer(player as SCNAudioPlayerMBS)
- SCNNodeMBS.audioPlayers as SCNAudioPlayerMBS()
- SCNNodeMBS.removeAudioPlayer(player as SCNAudioPlayerMBS)
Blog Entries
- News from the MBS Xojo Plugins Version 22.3
- MBS Xojo Plugins in version 22.3
- MBS Xojo Plugins, version 22.3pr3
Release notes
- Version 22.3
- Added SCNAudioPlayerMBS and SCNAudioSourceMBS classes for audio in SceneKit.
The items on this page are in the following plugins: MBS Mac64bit Plugin.
SCNActionMBS - SCNAudioSourceMBS