Un4seen.BassUtils
Namespace: Un4seen.Bass
Assembly: Bass.Net (in Bass.Net.dll) Version: 2.4.17.5
The Utils type exposes the following members.
Name | Description | |
---|---|---|
Is64Bit |
Returns , if running in a 64-bit environment - else false (32-bit).
|
Name | Description | |
---|---|---|
AbsSignMax(Int16, Int16) |
Returns the absolute signed maximum value of two values.
| |
AbsSignMax(Single, Single) |
Returns the absolute signed maximum value of two values.
| |
BASSAddOnGetPluginFileFilter(DictionaryInt32, String, String) |
Returns a file filter which can be used in a standard 'OpenFileDialog'.
| |
BASSAddOnGetPluginFileFilter(DictionaryInt32, String, String, Boolean) |
Returns a file filter which can be used in a standard 'OpenFileDialog'.
| |
BASSAddOnGetSupportedFileExtensions(String) |
Returns the supported stream file extensions of the given add-on file (e.g. "bassflac.dll").
Use to retrieve the native supported stream file extensions of Bass. Use "music" to retrive the native supported music file extensions of Bass. | |
BASSAddOnGetSupportedFileExtensions(DictionaryInt32, String, Boolean) |
Returns the supported stream file extensions for all loaded plugins.
| |
BASSAddOnGetSupportedFileFilter(DictionaryInt32, String, String) |
Returns a file filter which can be used in a standard 'OpenFileDialog'.
| |
BASSAddOnGetSupportedFileFilter(DictionaryInt32, String, String, Boolean) |
Returns a file filter which can be used in a standard 'OpenFileDialog'.
| |
BASSAddOnGetSupportedFileFilter(DictionaryInt32, String, String, Boolean, DictionaryString, String) |
Returns a file filter which can be used in a standard 'OpenFileDialog'.
| |
BASSAddOnGetSupportedFileName |
Returns the supported stream file name of the given add-on file (e.g. "bassflac.dll").
Use to retrieve the native supported stream file name of Bass. Use "music" to retrive the native supported music name of Bass. | |
BASSAddOnIsFileSupported |
Checks if a certain file is supported by the currently loaded add-ons.
| |
BASSChannelTypeToString |
Converts a BASSChannelType to a character representation describing the channel type or file type. Returns e.g. 'WMA', 'FLAC', 'MP3' etc.
| |
BASSTagTypeToString |
Converts a BASSTag to a character representation describing the tag type. Returns e.g. 'ID3v1', 'ID3v2', 'WMA', 'APE' etc.
| |
BPM2Seconds |
Calculates the length of one beat for a given BPM value.
| |
ByteToHex |
Converts a byte array to a hex string.
| |
ChannelNumberToString |
Converts a channel number to a string.
| |
DBToLevel(Double, Double) |
Converts any dB level value to its level value (double).
| |
DBToLevel(Double, Int32) |
Converts any dB level value to its level value (integer).
| |
DecodeAllData |
Decodes all the available data of the given channel right away.
| |
DetectCuePoints(Int32, Single, Double, Double, Double, Double, Int32) |
Detects the cue-in and -out points of a given decoding stream.
| |
DetectCuePoints(String, Single, Double, Double, Double, Double, Int32) |
Detects the cue-in and -out points of a given audio file.
| |
DetectNextLevel |
Finds the next position with a certain volume level.
| |
DMACopyMemory |
DMA (kernel32.dll) - The CopyMemory function copies a block of memory from one location to another.
| |
DMAFillMemory |
DMA (kernel32.dll) - The FillMemory macro fills a block of memory with a specified value.
| |
DMAMoveMemory |
DMA (kernel32.dll) - The MoveMemory function moves a block of memory from one location to another.
| |
DMAZeroMemory |
DMA (kernel32.dll) - The ZeroMemory macro fills a block of memory with zeros.
| |
FFTFrequency2Index |
Returns the index of a specific frequency for FFT data.
| |
FFTIndex2Frequency |
Returns the frequency of a specific index in FFT data.
| |
FixTimespan(Double) |
Converts a second value as reveived by BASS_ChannelBytes2Seconds(Int32, Int64) to a string representation.
| |
FixTimespan(Double, String) |
Converts a second value as reveived by BASS_ChannelBytes2Seconds(Int32, Int64) to a string representation.
| |
GetLevel(Byte, Int32, Int32, Int32) |
Equivalent to BASS_ChannelGetLevel(Int32), but with individual offset and length.
| |
GetLevel(Int16, Int32, Int32, Int32) |
Equivalent to BASS_ChannelGetLevel(Int32), but with individual offset and length.
| |
GetLevel(Single, Int32, Int32, Int32) |
Equivalent to BASS_ChannelGetLevel(Int32), but with individual offset and length.
| |
GetLevel(IntPtr, Int32, Int32, Int32, Int32) |
Equivalent to BASS_ChannelGetLevel(Int32), but with individual offset and length.
| |
GetLevel2(Byte, Int32, Int32, Int32) |
Equivalent to BASS_ChannelGetLevel(Int32), but with individual offset and length.
| |
GetLevel2(Int16, Int32, Int32, Int32) |
Equivalent to BASS_ChannelGetLevel(Int32), but with individual offset and length.
| |
GetLevel2(Single, Int32, Int32, Int32) |
Equivalent to BASS_ChannelGetLevel(Int32), but with individual offset and length.
| |
GetLevel2(IntPtr, Int32, Int32, Int32, Int32) |
Equivalent to BASS_ChannelGetLevel(Int32), but with individual offset and length.
| |
GetNormalizationGain |
Determines a gain factor (normalization), so that the maximum peak level of the stream will be at 0 dB.
| |
GetVersion |
Returns the version of the BASS.NET API (Bass.Net.dll)
| |
HexToByte |
Converts a hex string to a byte array.
| |
HighWord(Int32) |
Returns the higher 16-bit of an signed Int32 as a short value.
| |
HighWord(Int64) |
Returns the higher 32-bit of an signed Int64 as an integer value.
| |
HighWord32 |
Returns the higher 16-bit of an signed Int32 as an integer value.
| |
IntAsObject |
Translates an IntPtr into a .NET managed object of a given Type.
Sometime BASS returns a pointer which actually represents a memory block containing a structured object. This method does this translation for you and returns the actual object. | |
IntPtrAsStringAnsi(IntPtr) |
Translates an IntPtr into a .NET managed string.
Sometime BASS returns an IntPtr which actually represents a pointer to a memory block containing a null-terminated Ansi *char (string, 8-bit). This method does this translation for you and returns the actual string. | |
IntPtrAsStringAnsi(IntPtr, Int32) |
Translates an IntPtr into a .NET managed string.
Sometime BASS returns an IntPtr which actually represents a pointer to a memory block containing a null-terminated Ansi *char (string, 8-bit). This method does this translation for you and returns the actual string. | |
IntPtrAsStringLatin1 |
Translates an IntPtr into a .NET managed string.
Sometime BASS returns an IntPtr which actually represents a pointer to a memory block containing a null-terminated Latin-1 (ISO-8859-1) *char (string, 8-bit). This method does this translation for you and returns the actual string. | |
IntPtrAsStringUnicode(IntPtr) |
Translates an IntPtr into a .NET managed string.
Sometime BASS returns an IntPtr which actually represents a pointer to a memory block containing a null-terminated Unicode *char (string, 16-bit). This method does this translation for you and returns the actual string. | |
IntPtrAsStringUnicode(IntPtr, Int32) |
Translates an IntPtr into a .NET managed string.
Sometime BASS returns an IntPtr which actually represents a pointer to a memory block containing a null-terminated Unicode *char (string, 16-bit). This method does this translation for you and returns the actual string. | |
IntPtrAsStringUtf8(IntPtr) |
Translates an IntPtr into a .NET managed string.
Sometime BASS returns an IntPtr which actually represents a pointer to a memory block containing a null-terminated UTF-8 *char (string, 8-bit). This method does this translation for you and returns the actual string. | |
IntPtrAsStringUtf8(IntPtr, Int32) |
Translates an IntPtr into a .NET managed string.
Sometime BASS returns an IntPtr which actually represents a pointer to a memory block containing a null-terminated UTF-8 *char (string, 8-bit). This method does this translation for you and returns the actual string. | |
IntPtrAsStringUtf8orLatin1 |
Translates an IntPtr into a .NET managed string.
Sometime BASS returns an IntPtr which actually represents a pointer to a memory block containing either a null-terminated UTF-8 or Latin-1 *char (string, 8-bit). This method does this translation for you and returns the actual string. | |
IntPtrToArrayNullTermAnsi |
Retrieves an array of strings from a given unmanaged memory location.
NOTE: This method evaluates the pointer as 'a series/array of null-terminated Ansi strings. | |
IntPtrToArrayNullTermInt16 |
Retrieves an array of int from a given unmanaged memory location.
NOTE: This method evaluates the pointer as 'a series/array of Int16 values terminated by a 0 value. | |
IntPtrToArrayNullTermInt32 |
Retrieves an array of int from a given unmanaged memory location.
NOTE: This method evaluates the pointer as 'a series/array of Int32 values terminated by a 0 value. | |
IntPtrToArrayNullTermUnicode |
Retrieves an array of strings from a given unmanaged memory location.
NOTE: This method evaluates the pointer as 'a series/array of null-terminated UNICODE strings. | |
IntPtrToArrayNullTermUtf8 |
Retrieves an array of strings from a given unmanaged memory location.
NOTE: This method evaluates the pointer as 'a series/array of null-terminated UTF-8 strings. | |
LevelToDB(Double, Double) |
Converts any level value to its dB value.
| |
LevelToDB(Int32, Int32) |
Converts any integer level value to its dB value.
| |
LIBFreeLibrary |
This function decrements the reference count of the loaded dynamic-link library (DLL) loaded via LIBLoadLibrary(String).
When the reference count reaches zero, the module is unmapped from the address space of the calling process and the handle is no longer valid.
| |
LIBLoadLibrary |
LIB (kernel32.dll) - Loads a native unmanaged library (dll) into the process of our executable.
| |
LowWord(Int32) |
Returns the lower 16-bit of an signed Int32 as a short value.
| |
LowWord(Int64) |
Returns the lower 32-bit of an signed Int64 as an integer value
| |
LowWord32 |
Returns the lower 16-bit of an signed Int32 as an integer value.
| |
MakeByte |
Returns an unsigned byte value which is composed out of a low and high 4-bit.
| |
MakeLong(Int16, Int16) |
Returns an signed Int32 value which is composed out of a low and high value.
| |
MakeLong(Int32, Int32) |
Returns an signed Int32 value which is composed out of a low and high value.
| |
MakeLong64(Int32, Int32) |
Returns an signed Int64 value which is composed out of a low and high value.
| |
MakeLong64(Int64, Int64) |
Returns an signed Int64 value which is composed out of a low and high value.
| |
MakeWord |
Returns an signed Int16 value which is composed out of a low and high byte.
| |
SampleDither |
Applies a dither to a single sample value.
| |
SampleTo16Bit(Byte) |
Converts an 8-bit unsigned sample to a 16-bit signed sample.
| |
SampleTo16Bit(Byte) |
Converts a byte array (in "Little Endian" notation) to a 16-bit signed sample.
| |
SampleTo16Bit(Int16) |
Converts a 16-bit signed sample to a 16-bit signed sample.
| |
SampleTo16Bit(Single) |
Converts a float 32-bit signed sample to a 16-bit signed sample.
| |
SampleTo24Bit(Byte) |
Converts an 8-bit unsigned sample to a 24-bit signed sample.
| |
SampleTo24Bit(Byte) |
Converts a byte array (in "Little Endian" notation) to a 24-bit signed sample.
| |
SampleTo24Bit(Int16) |
Converts a 16-bit signed sample to a 24-bit signed sample.
| |
SampleTo24Bit(Single) |
Converts a float 32-bit signed sample to a 24-bit signed sample.
| |
SampleTo32Bit(Byte) |
Converts an 8-bit unsigned sample to a float 32-bit signed sample.
| |
SampleTo32Bit(Byte) |
Converts a byte array (in "Little Endian" notation) to a float 32-bit signed sample.
| |
SampleTo32Bit(Int16) |
Converts a 16-bit signed sample to a float 32-bit signed sample.
| |
SampleTo8Bit(Byte) |
Converts an 8-bit unsigned sample to an unsigned 8-bit sample.
| |
SampleTo8Bit(Byte) |
Converts a byte array (in "Little Endian" notation) to an 8-bit unsigned sample.
| |
SampleTo8Bit(Int16) |
Converts a 16-bit signed sample to an 8-bit unsigned sample.
| |
SampleTo8Bit(Single) |
Converts a float 32-bit signed sample to an 8-bit unsigned sample.
| |
Seconds2BPM |
Calculates the BPM value which represented the given length for one beat.
| |
Semitone2Samplerate |
Calculates a new samplerate according to a shift of an original samplerate by a number of semitones.
| |
StringToNullTermAnsi(String, IntPtr) |
Copies the contents of a managed string into unmanaged memory,
converting into ANSI format as it copies and appends a null-terminator.
| |
StringToNullTermAnsi(String, IntPtr, Boolean) |
Copies the contents of a managed string array into unmanaged memory,
converting each element into ANSI format as it copies and appends a null-terminator.
| |
StringToNullTermUnicode(String, IntPtr) |
Copies the contents of a managed string into unmanaged memory
and appends a null-terminator.
| |
StringToNullTermUnicode(String, IntPtr, Boolean) |
Copies the contents of a managed string array into unmanaged memory
and appends a null-terminator.
| |
StringToNullTermUtf8(String, IntPtr) |
Copies the contents of a managed string into unmanaged memory,
converting into UFT-8 format as it copies and appends a null-terminator.
| |
StringToNullTermUtf8(String, IntPtr, Boolean) |
Copies the contents of a managed string array into unmanaged memory,
converting each element into UTF-8 format as it copies and appends a null-terminator.
|