| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010, Google Inc. All rights reserved. | 2 * Copyright (C) 2010, Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 | 30 |
| 31 // minDecibels / maxDecibels represent the range to scale the FFT analysis d
ata for conversion to unsigned byte values. | 31 // minDecibels / maxDecibels represent the range to scale the FFT analysis d
ata for conversion to unsigned byte values. |
| 32 [RaisesException=Setter] attribute double minDecibels; | 32 [RaisesException=Setter] attribute double minDecibels; |
| 33 [RaisesException=Setter] attribute double maxDecibels; | 33 [RaisesException=Setter] attribute double maxDecibels; |
| 34 | 34 |
| 35 // A value from 0.0 -> 1.0 where 0.0 represents no time averaging with the l
ast analysis frame. | 35 // A value from 0.0 -> 1.0 where 0.0 represents no time averaging with the l
ast analysis frame. |
| 36 [RaisesException=Setter] attribute double smoothingTimeConstant; | 36 [RaisesException=Setter] attribute double smoothingTimeConstant; |
| 37 | 37 |
| 38 // Copies the current frequency data into the passed array. | 38 // Copies the current frequency data into the passed array. |
| 39 // If the array has fewer elements than the frequencyBinCount, the excess el
ements will be dropped. | 39 // If the array has fewer elements than the frequencyBinCount, the excess el
ements will be dropped. |
| 40 void getFloatFrequencyData(Float32Array array); | 40 [LegacyInterfaceTypeChecking] void getFloatFrequencyData(Float32Array array)
; |
| 41 void getByteFrequencyData(Uint8Array array); | 41 [LegacyInterfaceTypeChecking] void getByteFrequencyData(Uint8Array array); |
| 42 | 42 |
| 43 // Real-time waveform data | 43 // Real-time waveform data |
| 44 void getFloatTimeDomainData(Float32Array array); | 44 [LegacyInterfaceTypeChecking] void getFloatTimeDomainData(Float32Array array
); |
| 45 void getByteTimeDomainData(Uint8Array array); | 45 [LegacyInterfaceTypeChecking] void getByteTimeDomainData(Uint8Array array); |
| 46 }; | 46 }; |
| OLD | NEW |