Platforms to show: All Mac Windows Linux Cross-Platform

/Tools/SoundFile/SoundFile


Required plugins for this example: MBS Tools Plugin

You find this example project in your Plugins Download as a Xojo project file within the examples folder: /Tools/SoundFile/SoundFile

This example is the version from Sun, 19th Aug 2017.

Project "SoundFile.xojo_binary_project"
Class App Inherits Application
Const kEditClear = "&Delete"
Const kFileQuit = "&Quit"
Const kFileQuitShortcut = ""
End Class
Class Window1 Inherits Window
EventHandler Sub Open() dim f as FolderItem = GetFolderItem("libsndfile.dylib") if SoundFileMBS.LoadLibrary(f) then MsgBox "Library loaded"+EndOfLine+EndOfLine+SoundFileMBS.Version else MsgBox "Failed to load library."+EndOfLine+EndOfLine+SoundFileMBS.LoadErrorMessage quit end if f = GetFolderItem("testcase.au") dim s as SoundFileMBS = SoundFileMBS.Open(f) if s = Nil then MsgBox "Failed to open sound." else dim info as SoundFileInfoMBS = s.Info MsgBox str(info.Frames)+" frames, "+str(info.SampleRate)+" Hz." end if End EventHandler
End Class
MenuBar MainMenuBar
MenuItem FileMenu = "&File"
MenuItem FileQuit = "#App.kFileQuit"
MenuItem EditMenu = "&Edit"
MenuItem EditUndo = "&Undo"
MenuItem EditSeparator1 = "-"
MenuItem EditCut = "Cu&t"
MenuItem EditCopy = "&Copy"
MenuItem EditPaste = "&Paste"
MenuItem EditClear = "#App.kEditClear"
MenuItem EditSeparator2 = "-"
MenuItem EditSelectAll = "Select &All"
End MenuBar
End Project

See also:

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


The biggest plugin in space...