Platforms to show: All Mac Windows Linux Cross-Platform
SoundFileMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | Audio | MBS Tools Plugin | 17.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Notes:
As sndfile library is LGPL, you need to include library within your app folder and load it at runtime.
This is an abstract class. You can't create an instance, but you can get one from various plugin functions.
- 4 properties
- property ErrorMessage as String
- property ErrorNumber as Integer
- property Handle as Integer
- property Info as SoundFileInfoMBS
- 25 methods
- method Close
- method Constructor Private
- method GetString(type as Integer) as string
- method ReadDouble(p as ptr, items as Int64) as Int64
- method ReadDoubleFrames(p as ptr, items as Int64) as Int64
- method ReadInt(p as ptr, items as Int64) as Int64
- method ReadIntFrames(p as ptr, items as Int64) as Int64
- method ReadRaw(p as ptr, bytes as Int64) as Int64
- method ReadShort(p as ptr, items as Int64) as Int64
- method ReadShortFrames(p as ptr, items as Int64) as Int64
- method ReadSingle(p as ptr, items as Int64) as Int64
- method ReadSingleFrames(p as ptr, items as Int64) as Int64
- method Seek(frames as Int64, whence as Integer) as Int64
- method SetString(type as Integer, data as Memoryblock) as Integer
- method SetString(type as Integer, text as string) as Integer
- method WriteDouble(p as ptr, items as Int64) as Int64
- method WriteDoubleFrames(p as ptr, items as Int64) as Int64
- method WriteInt(p as ptr, items as Int64) as Int64
- method WriteIntFrames(p as ptr, items as Int64) as Int64
- method WriteRaw(p as ptr, bytes as Int64) as Int64
- method WriteShort(p as ptr, items as Int64) as Int64
- method WriteShortFrames(p as ptr, items as Int64) as Int64
- method WriteSingle(p as ptr, items as Int64) as Int64
- method WriteSingleFrames(p as ptr, items as Int64) as Int64
- method WriteSync
- 9 shared methods
- shared method Create(file as folderitem, Info as SoundFileInfoMBS) as SoundFileMBS
- shared method ErrorMessage(errorNumber as integer) as string
- shared method Loaded as Boolean
- shared method LoadErrorMessage as String
- shared method LoadLibrary(file as folderitem) as boolean
- shared method Open(data as MemoryBlock) as SoundFileMBS
- shared method Open(data as String) as SoundFileMBS
- shared method Open(file as folderitem, readwrite As Boolean = False) as SoundFileMBS
- shared method Version as string
- 13 constants
Seek Mode
Constant | Value | Description |
---|---|---|
kSeekCurrent | 1 |
Seek relative to current position. |
kSeekEnd | 2 |
Seek relative to end. |
kSeekSet | 0 |
Seek relative to begin. |
Strings
Constant | Value | Description |
---|---|---|
kStringAlbum | 7 |
Album |
kStringArtist | 4 |
Artist |
kStringComment | 5 |
Comment |
kStringCopyright | 2 |
Copyright |
kStringDate | 6 |
Date |
kStringGenre | 10 |
Genre |
kStringLicense | 8 |
License |
kStringSoftware | 3 |
Software |
kStringTitle | 1 |
Title |
kStringTrackNumber | 9 |
Track Number. |
This class has no sub classes.
Some examples using this class:
- /Audio/PortAudio
- /Audio/PortAudio Record and Play
- /Tools/SoundFile/SoundFile
- /Tools/SoundFile/SoundFile convert
Blog Entries
- Write audio file with samples using AVFoundation
- MBS Xojo Plugins, version 17.4pr3
- LibSndfile and TagLib plugins for Xojo
Videos
The items on this page are in the following plugins: MBS Tools Plugin.
