AudioFilters
new AudioFilters()
Properties
public static filters: Record<keyof QueueFilters, string>
public length: number
public names: Array<keyof QueueFilters>
Methods
public static [iterator](): IterableIterator<{ name: keyof QueueFilters,value: string }>
public static create(filters?): string
Create ffmpeg args from the specified filters name
Parameter | Type | Optional | Description |
---|---|---|---|
filters | Array<K> | ✅ | - |
public static define(filterName, value): void
Defines audio filter
Parameter | Type | Optional | Description |
---|---|---|---|
filterName | string | ❌ | The name of the filter |
value | string | ❌ | The ffmpeg args |
public static defineBulk(filtersArray): void
Defines multiple audio filters
Parameter | Type | Optional | Description |
---|---|---|---|
filtersArray | Array<{ name: string,value: string }> | ❌ | Array of filters containing the filter name and ffmpeg args |
public static get(name): Record<keyof QueueFilters, string>[K]
Parameter | Type | Optional | Description |
---|---|---|---|
name | K | ❌ | - |
public static has(name): boolean
Parameter | Type | Optional | Description |
---|---|---|---|
name | K | ❌ | - |