Difference between revisions of "Source:setFilter"
m |
m (updated version from 0.11.0 to 11.0) |
||
Line 1: | Line 1: | ||
− | {{newin|[[ | + | {{newin|[[11.0]]|110|type=function}} |
Sets a low-pass, high-pass, or band-pass filter to apply when playing the Source. | Sets a low-pass, high-pass, or band-pass filter to apply when playing the Source. | ||
Revision as of 12:44, 2 April 2018
Available since LÖVE 11.0 |
This function is not supported in earlier versions. |
Sets a low-pass, high-pass, or band-pass filter to apply when playing the Source.
Contents
Function
Synopsis
success = Source:setFilter( settings )
Arguments
table settings
- The filter settings to use for this Source, with the following fields:
FilterType type
- The type of filter to use.
number volume
- The overall volume of the audio. Must be between 0 and 1.
number highgain
- Volume of high-frequency audio. Only applies to low-pass and band-pass filters. Must be between 0 and 1.
number lowgain
- Volume of low-frequency audio. Only applies to high-pass and band-pass filters. Must be between 0 and 1.
Returns
boolean success
- Whether the filter was successfully applied to the Source.
Function
Disables filtering on this Source.
Synopsis
Source:setFilter( )
Arguments
None.
Returns
Nothing.
Notes
Audio filter functionality is not supported on iOS.
See Also
Other Languages
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info