Platforms to show: All Mac Windows Linux Cross-Platform

SoundFileInfoMBS class

Type Topic Plugin Version macOS Windows Linux iOS Targets
class Audio MBS Tools Plugin 17.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The class for the file info of a sound file.
Example
// show format, sample rate, channels and duration of an audio file
Var sound As SoundFileMBS = SoundFileMBS.Open(SpecialFolder.Desktop.Child("test.wav"))
If sound = Nil Then Return

Var info As SoundFileInfoMBS = sound.Info
MessageBox info.FormatName + " (" + info.FormatSubName + ")" + EndOfLine + _
info.SampleRate.ToString + " Hz, " + info.Channels.ToString + " channels" + EndOfLine + _
"Duration: " + Format(info.Frames / info.SampleRate, "0.00") + " seconds"

When you open a sound file, the library will fill this and provide you the file format details.
When writing a sound file, you need to build valid format.

This class has no subclasses.

Blog Entries

Some methods using this class:

Some properties using this class:

Some examples using this class:

Some related classes:


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


Sound   -   SoundFileMBS


The biggest plugin in space...