BASS.NET API for the Un4seen BASS Audio Library

UtilsBASSAddOnGetPluginFileFilter Method (DictionaryInt32, String, String)

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.17.5
Syntax

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

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.

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 BASS_PluginGetInfo(Int32) and BASSAddOnGetSupportedFileExtensions(String) internally and also includes all native BASS formats.

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

Dictionary<int, string> loadedPlugIns = Bass.BASS_PluginLoadDirectory(dir);
openFileDialog.Filter = Utils.BASSAddOnGetPluginFileFilter(loadedPlugIns, "All supported Audio Files");
See Also

Reference