@overwolf/ow-electron-packages-types 1.0.1-beta.0 → 1.0.1-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +5 -2
- package/types.d.ts +486 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@overwolf/ow-electron-packages-types",
|
|
3
|
-
"version": "1.0.1-beta.
|
|
3
|
+
"version": "1.0.1-beta.2",
|
|
4
4
|
"description": "Type definition file for autocompletion and documentation purposes for ow-electron packages",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"types": "types.d.ts",
|
|
@@ -33,5 +33,8 @@
|
|
|
33
33
|
},
|
|
34
34
|
"publishConfig": {
|
|
35
35
|
"tag": "beta"
|
|
36
|
+
},
|
|
37
|
+
"dependencies": {
|
|
38
|
+
"glob": "^13.0.0"
|
|
36
39
|
}
|
|
37
|
-
}
|
|
40
|
+
}
|
package/types.d.ts
CHANGED
|
@@ -490,7 +490,15 @@ type CaptureSourceType =
|
|
|
490
490
|
/**
|
|
491
491
|
* Capture a specific application window.
|
|
492
492
|
*/
|
|
493
|
-
| 'Window'
|
|
493
|
+
| 'Window'
|
|
494
|
+
/**
|
|
495
|
+
* Capture a specific image.
|
|
496
|
+
*/
|
|
497
|
+
| 'Image'
|
|
498
|
+
/**
|
|
499
|
+
* Capture a solid color screen.
|
|
500
|
+
*/
|
|
501
|
+
| 'Color';
|
|
494
502
|
|
|
495
503
|
|
|
496
504
|
|
|
@@ -1663,7 +1671,372 @@ type VideoRecordingSplitType =
|
|
|
1663
1671
|
/** `manual` — Splitting is controlled programmatically or by user input. */
|
|
1664
1672
|
| 'manual';
|
|
1665
1673
|
|
|
1674
|
+
/**
|
|
1675
|
+
* The base configuration for an audio processing filter.
|
|
1676
|
+
*
|
|
1677
|
+
* This interface serves as a blueprint for all audio filters within the system,
|
|
1678
|
+
* ensuring they have a unique identifier and a flexible container for settings.
|
|
1679
|
+
* * @example
|
|
1680
|
+
* ```typescript
|
|
1681
|
+
* const lowPass: AudioFilterBase = {
|
|
1682
|
+
* id: 'low-pass-001',
|
|
1683
|
+
* parameters: {
|
|
1684
|
+
* cutoff: 500,
|
|
1685
|
+
* resonance: 1.2
|
|
1686
|
+
* }
|
|
1687
|
+
* };
|
|
1688
|
+
* ```
|
|
1689
|
+
*/
|
|
1690
|
+
export interface AudioFilterBase {
|
|
1691
|
+
/**
|
|
1692
|
+
* A unique identifier for the filter instance.
|
|
1693
|
+
*/
|
|
1694
|
+
id: string;
|
|
1695
|
+
|
|
1696
|
+
/**
|
|
1697
|
+
* A collection of key-value pairs representing the filter's configuration.
|
|
1698
|
+
*
|
|
1699
|
+
*/
|
|
1700
|
+
parameters?: Record<string, number | string>;
|
|
1701
|
+
}
|
|
1702
|
+
|
|
1703
|
+
/**
|
|
1704
|
+
* A specialized filter for dynamic range compression.
|
|
1705
|
+
* * @example
|
|
1706
|
+
* ```typescript
|
|
1707
|
+
* const vocalComp: AudioCompressorFilter = {
|
|
1708
|
+
* id: 'compressor_filter',
|
|
1709
|
+
* parameters: {
|
|
1710
|
+
* ratio: 4,
|
|
1711
|
+
* threshold: -20
|
|
1712
|
+
* }
|
|
1713
|
+
* };
|
|
1714
|
+
* ```
|
|
1715
|
+
*/
|
|
1716
|
+
export interface AudioCompressorFilter extends AudioFilterBase {
|
|
1717
|
+
/**
|
|
1718
|
+
* A unique identifier for the filter instance.
|
|
1719
|
+
*/
|
|
1720
|
+
id: 'compressor_filter';
|
|
1721
|
+
|
|
1722
|
+
/**
|
|
1723
|
+
* Configuration settings specific to the compressor.
|
|
1724
|
+
*/
|
|
1725
|
+
parameters?: {
|
|
1726
|
+
/**
|
|
1727
|
+
* The amount of gain reduction applied once the signal exceeds the threshold.
|
|
1728
|
+
* Valid range: [1.00, 32.00]
|
|
1729
|
+
*/
|
|
1730
|
+
ratio?: number;
|
|
1731
|
+
|
|
1732
|
+
/**
|
|
1733
|
+
* The level (in dB) above which compression begins.
|
|
1734
|
+
* Valid range: [-60.0, 0.00]
|
|
1735
|
+
*/
|
|
1736
|
+
threshold?: number;
|
|
1666
1737
|
|
|
1738
|
+
/**
|
|
1739
|
+
* How quickly (in ms) the compressor reduces the volume.
|
|
1740
|
+
* Valid range: [1, 500]
|
|
1741
|
+
*/
|
|
1742
|
+
attack_time?: number;
|
|
1743
|
+
|
|
1744
|
+
/**
|
|
1745
|
+
* How quickly (in ms) the compressor returns to normal volume after the signal drops.
|
|
1746
|
+
* Valid range: [1, 1000]
|
|
1747
|
+
*/
|
|
1748
|
+
release_time?: number;
|
|
1749
|
+
|
|
1750
|
+
/**
|
|
1751
|
+
* The gain (in dB) applied to the signal after compression to compensate for volume loss.
|
|
1752
|
+
* Valid range: [-32.00, 32.00]
|
|
1753
|
+
*/
|
|
1754
|
+
output_gain?: number;
|
|
1755
|
+
};
|
|
1756
|
+
}
|
|
1757
|
+
|
|
1758
|
+
/**
|
|
1759
|
+
* A specialized filter for dynamic range expansion or noise gating.
|
|
1760
|
+
* * @example
|
|
1761
|
+
* ```typescript
|
|
1762
|
+
* const noiseGate: AudioExpanderFilter = {
|
|
1763
|
+
* id: 'expander_filter',
|
|
1764
|
+
* parameters: {
|
|
1765
|
+
* presets: 'gate',
|
|
1766
|
+
* threshold: -40,
|
|
1767
|
+
* detector: 'peak'
|
|
1768
|
+
* }
|
|
1769
|
+
* };
|
|
1770
|
+
* ```
|
|
1771
|
+
*/
|
|
1772
|
+
export interface AudioExpanderFilter extends AudioFilterBase {
|
|
1773
|
+
/**
|
|
1774
|
+
* A unique identifier for the filter instance.
|
|
1775
|
+
*/
|
|
1776
|
+
id: 'expander_filter';
|
|
1777
|
+
|
|
1778
|
+
/**
|
|
1779
|
+
* Configuration settings specific to the expander/gate.
|
|
1780
|
+
*/
|
|
1781
|
+
parameters?: {
|
|
1782
|
+
/**
|
|
1783
|
+
* Pre-defined configuration modes for common expansion tasks.
|
|
1784
|
+
*/
|
|
1785
|
+
presets?: 'expander' | 'gate';
|
|
1786
|
+
|
|
1787
|
+
/**
|
|
1788
|
+
* The ratio of expansion. Higher values result in more aggressive reduction
|
|
1789
|
+
* of signals below the threshold.
|
|
1790
|
+
* Valid range: [1.00, 20.00]
|
|
1791
|
+
*/
|
|
1792
|
+
ratio?: number;
|
|
1793
|
+
|
|
1794
|
+
/**
|
|
1795
|
+
* The level (in dB) below which expansion or gating begins.
|
|
1796
|
+
* Valid range: [-60.00, 0.00]
|
|
1797
|
+
*/
|
|
1798
|
+
threshold?: number;
|
|
1799
|
+
|
|
1800
|
+
/**
|
|
1801
|
+
* How quickly (in ms) the expander reduces the volume once the signal drops below threshold.
|
|
1802
|
+
* Valid range: [1, 100]
|
|
1803
|
+
*/
|
|
1804
|
+
attack_time?: number;
|
|
1805
|
+
|
|
1806
|
+
/**
|
|
1807
|
+
* How quickly (in ms) the expander returns to unity gain once the signal rises above threshold.
|
|
1808
|
+
* Valid range: [1, 1000]
|
|
1809
|
+
*/
|
|
1810
|
+
release_time?: number;
|
|
1811
|
+
|
|
1812
|
+
/**
|
|
1813
|
+
* The gain (in dB) applied to the signal after processing.
|
|
1814
|
+
* Valid range: [-32.00, 32.00]
|
|
1815
|
+
*/
|
|
1816
|
+
output_gain?: number;
|
|
1817
|
+
|
|
1818
|
+
/**
|
|
1819
|
+
* The method used to calculate the signal level.
|
|
1820
|
+
* - `RMS`: Root Mean Square (average power).
|
|
1821
|
+
* - `peak`: Highest instantaneous signal level.
|
|
1822
|
+
*/
|
|
1823
|
+
detector?: 'RMS' | 'peak';
|
|
1824
|
+
};
|
|
1825
|
+
}
|
|
1826
|
+
|
|
1827
|
+
/**
|
|
1828
|
+
* A simple filter used to adjust the volume or amplitude of an audio signal.
|
|
1829
|
+
* * @example
|
|
1830
|
+
* ```typescript
|
|
1831
|
+
* const boost: AudioGainFilter = {
|
|
1832
|
+
* id: 'gain_filter',
|
|
1833
|
+
* parameters: {
|
|
1834
|
+
* db: 6.5
|
|
1835
|
+
* }
|
|
1836
|
+
* };
|
|
1837
|
+
* ```
|
|
1838
|
+
*/
|
|
1839
|
+
export interface AudioGainFilter extends AudioFilterBase {
|
|
1840
|
+
/**
|
|
1841
|
+
* A unique identifier for the filter instance.
|
|
1842
|
+
*/
|
|
1843
|
+
id: 'gain_filter';
|
|
1844
|
+
|
|
1845
|
+
/**
|
|
1846
|
+
* Configuration settings for gain adjustment.
|
|
1847
|
+
*/
|
|
1848
|
+
parameters?: {
|
|
1849
|
+
/**
|
|
1850
|
+
* The amount of gain to apply to the signal, measured in decibels (dB).
|
|
1851
|
+
* Positive values amplify the signal, while negative values attenuate it.
|
|
1852
|
+
* * Valid range: [-30.00, 30.00]
|
|
1853
|
+
*/
|
|
1854
|
+
db?: number;
|
|
1855
|
+
};
|
|
1856
|
+
}
|
|
1857
|
+
|
|
1858
|
+
/**
|
|
1859
|
+
* A utility filter that flips the phase of the audio signal by 180 degrees.
|
|
1860
|
+
* * @example
|
|
1861
|
+
* ```typescript
|
|
1862
|
+
* const phaseFlip: AudioInvertPolarityFilter = {
|
|
1863
|
+
* id: 'invert_polarity_filter',
|
|
1864
|
+
* parameters: {}
|
|
1865
|
+
* };
|
|
1866
|
+
* ```
|
|
1867
|
+
*/
|
|
1868
|
+
export interface AudioInvertPolarityFilter extends AudioFilterBase {
|
|
1869
|
+
/**
|
|
1870
|
+
* A unique identifier for the filter instance.
|
|
1871
|
+
*/
|
|
1872
|
+
id: 'invert_polarity_filter';
|
|
1873
|
+
|
|
1874
|
+
/**
|
|
1875
|
+
* This filter does not currently support any adjustable parameters.
|
|
1876
|
+
*/
|
|
1877
|
+
parameters?: {};
|
|
1878
|
+
}
|
|
1879
|
+
|
|
1880
|
+
/**
|
|
1881
|
+
* A specialized dynamics processor used to prevent an audio signal from exceeding a specific decibel level.
|
|
1882
|
+
* * @example
|
|
1883
|
+
* ```typescript
|
|
1884
|
+
* const masterLimiter: AudioLimiterFilter = {
|
|
1885
|
+
* id: 'limiter_filter',
|
|
1886
|
+
* parameters: {
|
|
1887
|
+
* threshold: -0.3,
|
|
1888
|
+
* release_time: 100
|
|
1889
|
+
* }
|
|
1890
|
+
* };
|
|
1891
|
+
* ```
|
|
1892
|
+
*/
|
|
1893
|
+
export interface AudioLimiterFilter extends AudioFilterBase {
|
|
1894
|
+
/**
|
|
1895
|
+
* A unique identifier for the filter instance.
|
|
1896
|
+
*/
|
|
1897
|
+
id: 'limiter_filter';
|
|
1898
|
+
|
|
1899
|
+
/**
|
|
1900
|
+
* Configuration settings for the limiter.
|
|
1901
|
+
*/
|
|
1902
|
+
parameters?: {
|
|
1903
|
+
/**
|
|
1904
|
+
* The maximum peak level (in dB) the signal is allowed to reach.
|
|
1905
|
+
* Signals exceeding this level are strictly attenuated.
|
|
1906
|
+
* * Valid range: [-60.00, 0.00]
|
|
1907
|
+
*/
|
|
1908
|
+
threshold?: number;
|
|
1909
|
+
|
|
1910
|
+
/**
|
|
1911
|
+
* The time (in ms) it takes for the gain to return to unity after the
|
|
1912
|
+
* signal falls below the threshold.
|
|
1913
|
+
* * Valid range: [1, 1000]
|
|
1914
|
+
*/
|
|
1915
|
+
release_time?: number;
|
|
1916
|
+
};
|
|
1917
|
+
}
|
|
1918
|
+
|
|
1919
|
+
/**
|
|
1920
|
+
* A noise gate filter used to attenuate signals that fall below a certain threshold.
|
|
1921
|
+
* It is primarily used to remove background noise during silent passages.
|
|
1922
|
+
* * @example
|
|
1923
|
+
* ```typescript
|
|
1924
|
+
* const gate: AudioNoiseGateFilter = {
|
|
1925
|
+
* id: 'noise_gate_filter',
|
|
1926
|
+
* parameters: {
|
|
1927
|
+
* open_threshold: -40,
|
|
1928
|
+
* close_threshold: -45,
|
|
1929
|
+
* hold_time: 200
|
|
1930
|
+
* }
|
|
1931
|
+
* };
|
|
1932
|
+
* ```
|
|
1933
|
+
*/
|
|
1934
|
+
export interface AudioNoiseGateFilter extends AudioFilterBase {
|
|
1935
|
+
/**
|
|
1936
|
+
* A unique identifier for the filter instance.
|
|
1937
|
+
*/
|
|
1938
|
+
id: 'noise_gate_filter';
|
|
1939
|
+
|
|
1940
|
+
/**
|
|
1941
|
+
* Configuration settings for the noise gate.
|
|
1942
|
+
*/
|
|
1943
|
+
parameters?: {
|
|
1944
|
+
/**
|
|
1945
|
+
* The level (in dB) at which the gate closes, silencing the signal.
|
|
1946
|
+
* Valid range: [-96.00, 0.00]
|
|
1947
|
+
*/
|
|
1948
|
+
close_threshold?: number;
|
|
1949
|
+
|
|
1950
|
+
/**
|
|
1951
|
+
* The level (in dB) at which the gate opens, allowing the signal to pass.
|
|
1952
|
+
* Valid range: [-96.00, 0.00]
|
|
1953
|
+
*/
|
|
1954
|
+
open_threshold?: number;
|
|
1955
|
+
|
|
1956
|
+
/**
|
|
1957
|
+
* The time (in ms) it takes for the gate to fully open once the signal
|
|
1958
|
+
* exceeds the open threshold.
|
|
1959
|
+
* Valid range: [0, 10000]
|
|
1960
|
+
*/
|
|
1961
|
+
attack_time?: number;
|
|
1962
|
+
|
|
1963
|
+
/**
|
|
1964
|
+
* The duration (in ms) the gate remains fully open after the signal
|
|
1965
|
+
* drops below the close threshold before the release phase begins.
|
|
1966
|
+
* Valid range: [0, 10000]
|
|
1967
|
+
*/
|
|
1968
|
+
hold_time?: number;
|
|
1969
|
+
|
|
1970
|
+
/**
|
|
1971
|
+
* The time (in ms) it takes for the gate to fully close after the hold period.
|
|
1972
|
+
* Valid range: [0, 10000]
|
|
1973
|
+
*/
|
|
1974
|
+
release_time?: number;
|
|
1975
|
+
};
|
|
1976
|
+
}
|
|
1977
|
+
|
|
1978
|
+
/**
|
|
1979
|
+
* An advanced noise suppression filter utilizing machine learning or digital signal processing algorithms.
|
|
1980
|
+
* * @example
|
|
1981
|
+
* ```typescript
|
|
1982
|
+
* const aiDenoise: AudioNoiseSuppressFilterV2 = {
|
|
1983
|
+
* id: 'noise_suppress_filter_v2',
|
|
1984
|
+
* parameters: {
|
|
1985
|
+
* method: 'rnnoise'
|
|
1986
|
+
* }
|
|
1987
|
+
* };
|
|
1988
|
+
* ```
|
|
1989
|
+
*/
|
|
1990
|
+
export interface AudioNoiseSuppressFilterV2 extends AudioFilterBase {
|
|
1991
|
+
/**
|
|
1992
|
+
* A unique identifier for the filter instance.
|
|
1993
|
+
*/
|
|
1994
|
+
id: 'noise_suppress_filter_v2';
|
|
1995
|
+
|
|
1996
|
+
/**
|
|
1997
|
+
* Configuration settings for the noise suppression algorithm.
|
|
1998
|
+
*/
|
|
1999
|
+
parameters?: {
|
|
2000
|
+
/**
|
|
2001
|
+
* The suppression algorithm to be used.
|
|
2002
|
+
* - `rnnoise`: A recurrent neural network-based noise suppression (ideal for voice).
|
|
2003
|
+
* - `speex`: A traditional DSP-based noise suppression.
|
|
2004
|
+
*/
|
|
2005
|
+
method?: 'rnnoise' | 'speex';
|
|
2006
|
+
|
|
2007
|
+
/**
|
|
2008
|
+
* The level of noise reduction to apply in decibels (dB).
|
|
2009
|
+
*
|
|
2010
|
+
* Valid range: [-60.00, 0.00]
|
|
2011
|
+
*/
|
|
2012
|
+
suppress_level?: number;
|
|
2013
|
+
};
|
|
2014
|
+
}
|
|
2015
|
+
|
|
2016
|
+
/**
|
|
2017
|
+
* A union type representing all available audio filters.
|
|
2018
|
+
*
|
|
2019
|
+
* This type uses the `id` property as a type discriminator. When used in a switch
|
|
2020
|
+
* statement or conditional, TypeScript will narrow the `parameters` to the
|
|
2021
|
+
* specific interface associated with that ID.
|
|
2022
|
+
* * @example
|
|
2023
|
+
* ```typescript
|
|
2024
|
+
* function applyFilter(filter: AudioFilter) {
|
|
2025
|
+
* if (filter.id === 'gain_filter') {
|
|
2026
|
+
* // TypeScript knows filter.parameters.db exists here
|
|
2027
|
+
* console.log(filter.parameters?.db);
|
|
2028
|
+
* }
|
|
2029
|
+
* }
|
|
2030
|
+
* ```
|
|
2031
|
+
*/
|
|
2032
|
+
export type AudioFilter =
|
|
2033
|
+
| AudioCompressorFilter
|
|
2034
|
+
| AudioExpanderFilter
|
|
2035
|
+
| AudioGainFilter
|
|
2036
|
+
| AudioInvertPolarityFilter
|
|
2037
|
+
| AudioLimiterFilter
|
|
2038
|
+
| AudioNoiseGateFilter
|
|
2039
|
+
| AudioNoiseSuppressFilterV2;
|
|
1667
2040
|
|
|
1668
2041
|
/**
|
|
1669
2042
|
* Configuration options for video recording settings.
|
|
@@ -1813,6 +2186,14 @@ interface AudioDeviceSettings {
|
|
|
1813
2186
|
* @default false
|
|
1814
2187
|
*/
|
|
1815
2188
|
use_device_timing?: boolean;
|
|
2189
|
+
|
|
2190
|
+
/**
|
|
2191
|
+
* List of audio filters to apply to the device's audio signal.
|
|
2192
|
+
*
|
|
2193
|
+
* Each filter can modify the audio in various ways,
|
|
2194
|
+
* such as compression, gain adjustment, noise suppression, etc.
|
|
2195
|
+
*/
|
|
2196
|
+
filters?: AudioFilter[];
|
|
1816
2197
|
}
|
|
1817
2198
|
|
|
1818
2199
|
|
|
@@ -2299,6 +2680,44 @@ interface WindowCaptureSourceSettings extends CaptureSourceSettings {
|
|
|
2299
2680
|
compatibility?: boolean;
|
|
2300
2681
|
}
|
|
2301
2682
|
|
|
2683
|
+
/**
|
|
2684
|
+
* Settings for capturing a static image as a source.
|
|
2685
|
+
*
|
|
2686
|
+
* Extends {@link CaptureSourceSettings} with image-specific options such as file path.
|
|
2687
|
+
*
|
|
2688
|
+
* @see CaptureSourceSettings
|
|
2689
|
+
*/
|
|
2690
|
+
export interface ImageCaptureSourceSettings extends CaptureSourceSettings {
|
|
2691
|
+
/**
|
|
2692
|
+
* Image file path.
|
|
2693
|
+
*/
|
|
2694
|
+
path: string;
|
|
2695
|
+
}
|
|
2696
|
+
|
|
2697
|
+
/**
|
|
2698
|
+
* Settings for capturing a solid color as a source.
|
|
2699
|
+
*
|
|
2700
|
+
* Extends {@link CaptureSourceSettings} with color-specific options such as color value, width, and height.
|
|
2701
|
+
*
|
|
2702
|
+
* @see CaptureSourceSettings
|
|
2703
|
+
*/
|
|
2704
|
+
export interface ColorCaptureSourceSettings extends CaptureSourceSettings {
|
|
2705
|
+
/**
|
|
2706
|
+
* Color in #AARRGGBB format. (alpha red green blue)
|
|
2707
|
+
*/
|
|
2708
|
+
color: string;
|
|
2709
|
+
|
|
2710
|
+
/**
|
|
2711
|
+
* Width in pixels
|
|
2712
|
+
*/
|
|
2713
|
+
width: number;
|
|
2714
|
+
|
|
2715
|
+
/**
|
|
2716
|
+
* Height in pixels
|
|
2717
|
+
*/
|
|
2718
|
+
height: number;
|
|
2719
|
+
}
|
|
2720
|
+
|
|
2302
2721
|
/**
|
|
2303
2722
|
* Information about a generic capture source configuration, used for identifying and configuring
|
|
2304
2723
|
* a video capture input such as a display, game, or application window.
|
|
@@ -2402,6 +2821,54 @@ interface WindowCaptureSource extends CaptureSource {
|
|
|
2402
2821
|
readonly properties: WindowCaptureSourceSettings;
|
|
2403
2822
|
}
|
|
2404
2823
|
|
|
2824
|
+
/**
|
|
2825
|
+
* Image-based capture source configuration.
|
|
2826
|
+
*
|
|
2827
|
+
* Extends {@link CaptureSource} with the `'Image'` type and
|
|
2828
|
+
* configuration options for capturing a static image file.
|
|
2829
|
+
*/
|
|
2830
|
+
export interface ImageCaptureSource extends CaptureSource {
|
|
2831
|
+
/**
|
|
2832
|
+
* The capture source type.
|
|
2833
|
+
*
|
|
2834
|
+
* Always set to `'Image'` for this interface.
|
|
2835
|
+
*/
|
|
2836
|
+
readonly type: 'Image';
|
|
2837
|
+
|
|
2838
|
+
/**
|
|
2839
|
+
* Configuration settings for image capture.
|
|
2840
|
+
*
|
|
2841
|
+
* Includes file path.
|
|
2842
|
+
*
|
|
2843
|
+
* @see ImageCaptureSourceSettings
|
|
2844
|
+
*/
|
|
2845
|
+
readonly properties: ImageCaptureSourceSettings;
|
|
2846
|
+
}
|
|
2847
|
+
|
|
2848
|
+
/**
|
|
2849
|
+
* Color-based capture source configuration.
|
|
2850
|
+
*
|
|
2851
|
+
* Extends {@link CaptureSource} with the `'Color'` type and
|
|
2852
|
+
* configuration options for capturing a solid color.
|
|
2853
|
+
*/
|
|
2854
|
+
export interface ColorCaptureSource extends CaptureSource {
|
|
2855
|
+
/**
|
|
2856
|
+
* The capture source type.
|
|
2857
|
+
*
|
|
2858
|
+
* Always set to `'Color'` for this interface.
|
|
2859
|
+
*/
|
|
2860
|
+
readonly type: 'Color';
|
|
2861
|
+
|
|
2862
|
+
/**
|
|
2863
|
+
* Configuration settings for color capture.
|
|
2864
|
+
*
|
|
2865
|
+
* Includes color value, width, and height.
|
|
2866
|
+
*
|
|
2867
|
+
* @see ColorCaptureSourceSettings
|
|
2868
|
+
*/
|
|
2869
|
+
readonly properties: ColorCaptureSourceSettings;
|
|
2870
|
+
}
|
|
2871
|
+
|
|
2405
2872
|
|
|
2406
2873
|
/**
|
|
2407
2874
|
* Configuration for all audio-related settings.
|
|
@@ -3004,7 +3471,7 @@ interface CaptureSettingsBuilder extends CaptureSettings {
|
|
|
3004
3471
|
* @returns The builder instance for chaining.
|
|
3005
3472
|
*/
|
|
3006
3473
|
addScreenSource(
|
|
3007
|
-
settings: MonitorCaptureSourceSettings
|
|
3474
|
+
settings: MonitorCaptureSourceSettings,
|
|
3008
3475
|
): CaptureSettingsBuilder;
|
|
3009
3476
|
|
|
3010
3477
|
/**
|
|
@@ -3021,7 +3488,7 @@ interface CaptureSettingsBuilder extends CaptureSettings {
|
|
|
3021
3488
|
* @param settings
|
|
3022
3489
|
*/
|
|
3023
3490
|
addWindowSource(
|
|
3024
|
-
settings: WindowCaptureSourceSettings
|
|
3491
|
+
settings: WindowCaptureSourceSettings,
|
|
3025
3492
|
): CaptureSettingsBuilder;
|
|
3026
3493
|
|
|
3027
3494
|
/**
|
|
@@ -3032,9 +3499,21 @@ interface CaptureSettingsBuilder extends CaptureSettings {
|
|
|
3032
3499
|
*/
|
|
3033
3500
|
addBrowserWindowSource(
|
|
3034
3501
|
browserWindow: BrowserWindow,
|
|
3035
|
-
setting: WindowCaptureSourceSettings
|
|
3502
|
+
setting: WindowCaptureSourceSettings,
|
|
3036
3503
|
): CaptureSettingsBuilder;
|
|
3037
3504
|
|
|
3505
|
+
/**
|
|
3506
|
+
* Add Image capture source
|
|
3507
|
+
* @param settings
|
|
3508
|
+
*/
|
|
3509
|
+
addImageSource(settings: ImageCaptureSourceSettings): CaptureSettingsBuilder;
|
|
3510
|
+
|
|
3511
|
+
/**
|
|
3512
|
+
* Add Color capture source
|
|
3513
|
+
* @param settings
|
|
3514
|
+
*/
|
|
3515
|
+
addColorSource(settings: ColorCaptureSourceSettings): CaptureSettingsBuilder;
|
|
3516
|
+
|
|
3038
3517
|
/**
|
|
3039
3518
|
* Adds an audio device for capturing input or output audio.
|
|
3040
3519
|
*
|
|
@@ -3044,7 +3523,7 @@ interface CaptureSettingsBuilder extends CaptureSettings {
|
|
|
3044
3523
|
*/
|
|
3045
3524
|
addAudioCapture(
|
|
3046
3525
|
params: AudioDeviceParams,
|
|
3047
|
-
settings?: AudioDeviceSettings
|
|
3526
|
+
settings?: AudioDeviceSettings,
|
|
3048
3527
|
): CaptureSettingsBuilder;
|
|
3049
3528
|
|
|
3050
3529
|
/**
|
|
@@ -3058,7 +3537,7 @@ interface CaptureSettingsBuilder extends CaptureSettings {
|
|
|
3058
3537
|
addAudioDefaultCapture(
|
|
3059
3538
|
type: AudioDeviceType,
|
|
3060
3539
|
params?: DefaultAudioDeviceParams,
|
|
3061
|
-
settings?: AudioDeviceSettings
|
|
3540
|
+
settings?: AudioDeviceSettings,
|
|
3062
3541
|
): CaptureSettingsBuilder;
|
|
3063
3542
|
|
|
3064
3543
|
/**
|
|
@@ -3070,7 +3549,7 @@ interface CaptureSettingsBuilder extends CaptureSettings {
|
|
|
3070
3549
|
*/
|
|
3071
3550
|
addApplicationAudioCapture(
|
|
3072
3551
|
param: ApplicationAudioCaptureParams,
|
|
3073
|
-
settings?: AudioDeviceSettings
|
|
3552
|
+
settings?: AudioDeviceSettings,
|
|
3074
3553
|
): CaptureSettingsBuilder;
|
|
3075
3554
|
|
|
3076
3555
|
/**
|