Platforms to show: All Mac Windows Linux Cross-Platform
Back to AVMIDIPlayerMBS class.
AVMIDIPlayerMBS.Constructor(Data as MemoryBlock, SoundBankFile as FolderItem = nil, byref error as NSErrorMBS)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Midi | MBS AVFoundation Plugin | 16.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Data: The data to play.
SoundBankFile: The folderitem of the sound bank. The sound bank must be a SoundFont2 or DLS bank.
Error: Returns, by-reference, a description of the error, if an error occurs.
For OS X the bank folderitem can be set to nil to use the default sound bank. However, iOS must always refer to a valid bank file.
See also:
AVMIDIPlayerMBS.Constructor(Data as String, SoundBankFile as FolderItem = nil, byref error as NSErrorMBS)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Midi | MBS AVFoundation Plugin | 16.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Data: The data to play.
SoundBankFile: The folderitem of the sound bank. The sound bank must be a SoundFont2 or DLS bank.
Error: Returns, by-reference, a description of the error, if an error occurs.
For OS X the bank folderitem can be set to nil to use the default sound bank. However, iOS must always refer to a valid bank file.
See also:
AVMIDIPlayerMBS.Constructor(File as FolderItem, SoundBankFile as FolderItem = nil, byref error as NSErrorMBS)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Midi | MBS AVFoundation Plugin | 16.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
File: The file to play.
SoundBankFile: The folderitem of the sound bank. The sound bank must be a SoundFont2 or DLS bank.
Error: Returns, by-reference, a description of the error, if an error occurs.
For OS X the bank folderitem can be set to nil to use the default sound bank. However, iOS must always refer to a valid bank file.
See also:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Midi | MBS AVFoundation Plugin | 16.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Midi | MBS AVFoundation Plugin | 16.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
If prepareToPlay has not been invoked, play may be delayed while the events are prerolled.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Midi | MBS AVFoundation Plugin | 16.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
This happens automatically on play if it has not already been called, but may produce a delay in startup.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Midi | MBS AVFoundation Plugin | 16.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
The items on this page are in the following plugins: MBS AVFoundation Plugin.