BASS.NET API for the Un4seen BASS Audio LibraryUtilsBASSAddOnGetSupportedFileFilter 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: 2.4.12.0
Syntax

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

Parameters

plugins
Type: System.Collections.GenericDictionaryInt32, String
The hash table as returned by the BASS_PluginLoadDirectory(String) method.
allFormatName
Type: SystemString
The name of the first entry which will describe all available formats. Or , if only the plain formats should be returned.
includeBASS
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...
Remarks

This method uses BASSAddOnGetSupportedFileName(String) 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).

Examples

VB
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.BASSAddOnGetSupportedFileFilter(loadedPlugIns, null, false);
See Also

Reference