BASS.NET API for the Un4seen BASS Audio LibraryUtilsBASSAddOnGetPluginFileFilter Method (DictionaryInt32, String, String, Boolean)BASS.NET API for the Un4seen BASS Audio Library
Returns a file filter which can be used in a standard 'OpenFileDialog'.

Namespace: Un4seen.Bass
Assembly: Bass.Net (in Bass.Net.dll) Version:

public static string BASSAddOnGetPluginFileFilter(
	Dictionary<int, string> plugins,
	string allFormatName,
	bool includeBASS


Type: System.Collections.GenericDictionaryInt32, String
The hash table as returned by the BASS_PluginLoadDirectory(String) method.
Type: SystemString
The name of the first entry which will describe all available formats. Or , if only the plain formats should be returned.
Type: SystemBoolean
, if also the native BASS formats should be added.

Return Value

Type: String
The file filter string which can be used in a standard 'OpenFileDialog' in the format: allFormatName|AllExtensions|FormatName1|externtions1|FormatName2|externtions2...

This method uses BASS_PluginGetInfo(Int32) and BASSAddOnGetSupportedFileExtensions(String) internally.

Note: This list reports a set of file extensions which might be supported. There is no guarantee that the list is complete or might contain formats not being supported on your particular OS/machine (due to additional or missing audio codecs).


Dim loadedPlugIns As Dictionary(Of Integer, String) = Bass.BASS_PluginLoadDirectory(dir)
openFileDialog.Filter = Utils.BASSAddOnGetPluginFileFilter(loadedPlugIns, Nothing, False)
Dictionary<int, string> loadedPlugIns = Bass.BASS_PluginLoadDirectory(dir);
openFileDialog.Filter = Utils.BASSAddOnGetPluginFileFilter(loadedPlugIns, null, false);
See Also