Home
last modified time | relevance | path

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

/hardware/interfaces/audio/aidl/default/alsa/
DUtils.cpp216 void applyGainToInt32Buffer(int32_t* typedBuffer, const size_t bufferSizeBytes, const float gain) { in applyGainToInt32Buffer() argument
223 float multiplied = (*typedBuffer) * gain; in applyGainToInt32Buffer()
225 *typedBuffer++ = INT32_MAX; in applyGainToInt32Buffer()
227 *typedBuffer++ = INT32_MIN; in applyGainToInt32Buffer()
229 *typedBuffer++ = multiplied; in applyGainToInt32Buffer()
234 *typedBuffer++ = (*typedBuffer) * gain; in applyGainToInt32Buffer()
461 int32_t* typedBuffer = (int32_t*)buffer; in applyGain() local
462 applyGainToInt32Buffer(typedBuffer, bufferSizeBytes, gain); in applyGain()
469 std::unique_ptr<int32_t[]> typedBuffer(new int32_t[numSamples]); in applyGain() local
470 memcpy_to_i32_from_p24(typedBuffer.get(), (uint8_t*)buffer, numSamples); in applyGain()
[all …]