Searched refs:sweep (Results 1 – 2 of 2) sorted by relevance
/cts/tests/tests/media/common/src/android/media/cts/ |
D | AudioHelper.java | 67 final double frequency, double sweep) { in createSoundDataInByteArray() argument 70 sweep = Math.PI * sweep / ((double)sampleRate * vai.length); in createSoundDataInByteArray() 72 int unsigned = (int)(Math.sin(j * (rad + j * sweep)) * Byte.MAX_VALUE) in createSoundDataInByteArray() 80 final double frequency, double sweep) { in createSoundDataInShortArray() argument 83 sweep = Math.PI * sweep / ((double)sampleRate * vai.length); in createSoundDataInShortArray() 85 vai[j] = (short)(Math.sin(j * (rad + j * sweep)) * Short.MAX_VALUE); in createSoundDataInShortArray() 91 final double frequency, double sweep) { in createSoundDataInFloatArray() argument 94 sweep = Math.PI * sweep / ((double)sampleRate * vaf.length); in createSoundDataInFloatArray() 96 vaf[j] = (float)(Math.sin(j * (rad + j * sweep))); in createSoundDataInFloatArray() 111 final int sampleRate, final double frequency, double sweep) { in createSoundDataInShortByteBuffer() argument [all …]
|
D | StreamUtils.java | 270 int samples, int sampleRate, double frequency, double sweep, boolean useFloat) { in PcmAudioBufferStream() argument 278 samples, sampleRate, frequency, sweep); in PcmAudioBufferStream() 287 samples, sampleRate, frequency, sweep)); in PcmAudioBufferStream()
|