Platforms to show: All Mac Windows Linux Cross-Platform
AVAudioFileMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | AVFoundationNode | MBS AVFoundation Plugin | 15.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Regardless of the file’s actual format, you read and write the file using AVAudioPCMBuffer objects, that contain samples in AVAudioCommonFormat, referred to as the file’s processing format. Conversions are performed to and from the file’s actual format.
Reads and writes are always sequential, but random access is possible by setting the framePosition property.
- 6 properties
- property fileFormat as AVAudioFormatMBS
- property FramePosition as Int64
- property Handle as Integer
- property Length as Int64
- property processingFormat as AVAudioFormatMBS
- property URL as String
- 7 methods
- method Constructor(File as FolderItem, byref error as NSErrorMBS)
- method Constructor(File as FolderItem, commonFormat as Integer, Interleaved as Boolean, byref error as NSErrorMBS)
- method Constructor(File as FolderItem, settings as Dictionary, byref error as NSErrorMBS)
- method Constructor(File as FolderItem, settings as Dictionary, commonFormat as Integer, Interleaved as Boolean, byref error as NSErrorMBS)
- method readIntoBuffer(buffer as AVAudioPCMBufferMBS, byref error as NSErrorMBS) as Boolean
- method readIntoBuffer(buffer as AVAudioPCMBufferMBS, frameCount as Integer, byref error as NSErrorMBS) as Boolean
- method writeFromBuffer(buffer as AVAudioPCMBufferMBS, byref error as NSErrorMBS) as Boolean
- 2 shared methods
- shared method available as boolean
- shared method fileDuration(file as folderItem) as Double
This class has no sub classes.
Some methods using this class:
- AVAudioPlayerNodeMBS.scheduleFile(callbackType as Integer, file as AVAudioFileMBS, time as AVAudioTimeMBS, tag as Variant = nil)
- AVAudioPlayerNodeMBS.scheduleFile(file as AVAudioFileMBS, time as AVAudioTimeMBS, tag as Variant = nil)
- AVAudioPlayerNodeMBS.scheduleSegment(callbackType as Integer, file as AVAudioFileMBS, time as AVAudioTimeMBS, startFrame as Int64, frameCount as Int64, tag as Variant = nil)
- AVAudioPlayerNodeMBS.scheduleSegment(file as AVAudioFileMBS, time as AVAudioTimeMBS, startFrame as Int64, frameCount as Int64, tag as Variant = nil)
Some events using this class:
- AVAudioPlayerNodeMBS.scheduleFileCompleted(callbackType as Integer, file as AVAudioFileMBS, time as AVAudioTimeMBS, tag as Variant)
- AVAudioPlayerNodeMBS.scheduleSegmentCompleted(callbackType as Integer, file as AVAudioFileMBS, startFrame as Int64, frameCount as Int64, time as AVAudioTimeMBS, tag as Variant)
Some examples using this class:
- /AVFoundation/AVAudioEngine manual rendering
- /AVFoundation/AVAudioEngine/Player
- /AVFoundation/AVAudioEngine/Player with AudioUnit for Level Meter
- /AVFoundation/AVAudioEngine/Show Samples
Blog Entries
The items on this page are in the following plugins: MBS AVFoundation Plugin.
AVAudioEnvironmentReverbParametersMBS - AVAudioFormatMBS