Sets the output master volume.
Namespace: Un4seen.Bass
Assembly: Bass.Net (in Bass.Net.dll) Version: 2.4.17.2
Syntax
Parameters
- volume
- Type: SystemSingle
The volume level... 0 (silent) to 1 (max).
Return Value
Type: BooleanIf succesful, then is returned, else is returned. Use BASS_ErrorGetCode to get the error code.
Remarks
This function affects the volume level of all applications using the same output device. If you wish to only affect the level of your app's sounds, BASS_ChannelSetAttribute(Int32, BASSAttribute, Single) and/or the BASS_CONFIG_GVOL_MUSIC / BASS_CONFIG_GVOL_SAMPLE / BASS_CONFIG_GVOL_STREAM config options should be used instead.
When using multiple devices, the current thread's device setting (as set with BASS_SetDevice(Int32)) determines which device this function call applies to.
ERROR CODE | Description |
---|---|
BASS_ERROR_INIT | BASS_Init(Int32, Int32, BASSInit, IntPtr, IntPtr) has not been successfully called. |
BASS_ERROR_NOTAVAIL | There is no volume control when using the "no sound" device. |
BASS_ERROR_ILLPARAM | volume is invalid. |
BASS_ERROR_UNKNOWN | Some other mystery problem! |
See Also