Home
last modified time | relevance | path

Searched refs:shortData (Results 1 – 4 of 4) sorted by relevance

/frameworks/av/media/libaaudio/src/flowgraph/
DSinkI16.cpp33 int16_t *shortData = (int16_t *) data; in read() local
46 memcpy_to_i16_from_float(shortData, signal, numSamples); in read()
47 shortData += numSamples; in read()
52 *shortData++ = std::min(INT16_MAX, std::max(INT16_MIN, n)); // clip in read()
DSourceI16.cpp42 const int16_t *shortData = &shortBase[mFrameIndex * channelCount]; in onProcess() local
45 memcpy_to_float_from_i16(floatData, shortData, numSamples); in onProcess()
48 *floatData++ = *shortData++ * (1.0f / 32768); in onProcess()
/frameworks/av/media/libaaudio/examples/input_monitor/src/
Dinput_monitor.cpp54 int16_t *shortData = nullptr; in main() local
103 shortData = new int16_t[framesPerRead * actualSamplesPerFrame]; in main()
132 actual = AAudioStream_read(aaudioStream, shortData, minFrames, timeoutNanos); in main()
151 sample = shortData[frameIndex * actualSamplesPerFrame] * (1.0/32768); in main()
208 delete[] shortData; in main()
/frameworks/av/media/libaaudio/examples/write_sine/src/
Dwrite_sine.cpp52 int16_t *shortData = nullptr; in main() local
101 shortData = new int16_t[framesPerWrite * actualChannelCount]; in main()
144 myData.sineOscillators[i].render(&shortData[i], actualChannelCount, in main()
174 actual = AAudioStream_write(aaudioStream, shortData, minFrames, timeoutNanos); in main()
237 delete[] shortData; in main()