|
5 | 5 | */
|
6 | 6 | package org.scalajs.dom
|
7 | 7 |
|
8 |
| -import org.scalajs.dom.experimental.mediastream.MediaStream |
9 | 8 | import scala.scalajs.js
|
10 |
| -import scala.scalajs.js.annotation._ |
11 | 9 |
|
12 | 10 | /** Is an unsigned long value representing the size of the FFT (Fast Fourier Transform) to be used to determine the
|
13 |
| - * frequency domain. |
14 |
| - */ |
15 |
| - |
| 11 | + * frequency domain. |
| 12 | + */ |
16 | 13 |
|
17 | 14 | /** Is an unsigned long value half that of the FFT size. This generally equates to the number of data values you will
|
18 |
| - * have to play with for the visualization. |
19 |
| - */ |
20 |
| - |
| 15 | + * have to play with for the visualization. |
| 16 | + */ |
21 | 17 |
|
22 | 18 | /** Is a double value representing the minimum power value in the scaling range for the FFT analysis data, for
|
23 |
| - * conversion to unsigned byte values — basically, this specifies the minimum value for the range of results when |
24 |
| - * using getByteFrequencyData(). |
25 |
| - */ |
26 |
| - |
| 19 | + * conversion to unsigned byte values — basically, this specifies the minimum value for the range of results when using |
| 20 | + * getByteFrequencyData(). |
| 21 | + */ |
27 | 22 |
|
28 | 23 | /** Is a double value representing the maximum power value in the scaling range for the FFT analysis data, for
|
29 |
| - * conversion to unsigned byte values — basically, this specifies the maximum value for the range of results when |
30 |
| - * using getByteFrequencyData(). |
31 |
| - */ |
32 |
| - |
| 24 | + * conversion to unsigned byte values — basically, this specifies the maximum value for the range of results when using |
| 25 | + * getByteFrequencyData(). |
| 26 | + */ |
33 | 27 |
|
34 | 28 | /** Is a double value representing the averaging constant with the last analysis frame — basically, it makes the
|
35 |
| - * transition between values over time smoother. |
36 |
| - */ |
37 |
| - |
| 29 | + * transition between values over time smoother. |
| 30 | + */ |
38 | 31 |
|
39 | 32 | /** Copies the current frequency data into a Float32Array array passed into it.
|
40 |
| - * |
41 |
| - * If the array has fewer elements than the AnalyserNode.frequencyBinCount, excess elements are dropped. If it has |
42 |
| - * more elements than needed, excess elements are ignored. |
43 |
| - * |
44 |
| - * @param array |
45 |
| - * The Float32Array that the frequency domain data will be copied to. |
46 |
| - */ |
47 |
| - |
| 33 | + * |
| 34 | + * If the array has fewer elements than the AnalyserNode.frequencyBinCount, excess elements are dropped. If it has more |
| 35 | + * elements than needed, excess elements are ignored. |
| 36 | + * |
| 37 | + * @param array |
| 38 | + * The Float32Array that the frequency domain data will be copied to. |
| 39 | + */ |
48 | 40 |
|
49 | 41 | /** Copies the current frequency data into a Uint8Array (unsigned byte array) passed into it.
|
50 |
| - * |
51 |
| - * If the array has fewer elements than the AnalyserNode.frequencyBinCount, excess elements are dropped. If it has |
52 |
| - * more elements than needed, excess elements are ignored. |
53 |
| - * |
54 |
| - * @param array |
55 |
| - * The Uint8Array that the frequency domain data will be copied to. |
56 |
| - */ |
57 |
| - |
| 42 | + * |
| 43 | + * If the array has fewer elements than the AnalyserNode.frequencyBinCount, excess elements are dropped. If it has more |
| 44 | + * elements than needed, excess elements are ignored. |
| 45 | + * |
| 46 | + * @param array |
| 47 | + * The Uint8Array that the frequency domain data will be copied to. |
| 48 | + */ |
58 | 49 |
|
59 | 50 | /** Copies the current waveform, or time-domain, data into a Float32Array array passed into it.
|
60 |
| - * |
61 |
| - * If the array has fewer elements than the AnalyserNode.fftSize, excess elements are dropped. If it has more |
62 |
| - * elements than needed, excess elements are ignored. |
63 |
| - * |
64 |
| - * @param array |
65 |
| - * The Float32Array that the time domain data will be copied to. |
66 |
| - */ |
67 |
| - |
| 51 | + * |
| 52 | + * If the array has fewer elements than the AnalyserNode.fftSize, excess elements are dropped. If it has more elements |
| 53 | + * than needed, excess elements are ignored. |
| 54 | + * |
| 55 | + * @param array |
| 56 | + * The Float32Array that the time domain data will be copied to. |
| 57 | + */ |
68 | 58 |
|
69 | 59 | /** Copies the current waveform, or time-domain, data into a Uint8Array (unsigned byte array) passed into it.
|
70 |
| - * |
71 |
| - * If the array has fewer elements than the AnalyserNode.fftSize, excess elements are dropped. If it has more |
72 |
| - * elements than needed, excess elements are ignored. |
73 |
| - * |
74 |
| - * @param array |
75 |
| - * The Uint8Array that the time domain data will be copied to. |
76 |
| - */ |
77 |
| - |
| 60 | + * |
| 61 | + * If the array has fewer elements than the AnalyserNode.fftSize, excess elements are dropped. If it has more elements |
| 62 | + * than needed, excess elements are ignored. |
| 63 | + * |
| 64 | + * @param array |
| 65 | + * The Uint8Array that the time domain data will be copied to. |
| 66 | + */ |
78 | 67 |
|
79 | 68 | /** AudioBufferSourceNode has no input and exactly one output. The number of channels in the output corresponds to the
|
80 | 69 | * number of channels of the AudioBuffer that is set to the AudioBufferSourceNode.buffer property. If there is no
|
|
0 commit comments