MCPcopy Create free account
hub / github.com/aethersdr/AetherSDR / dropAudioBufferFront

Function dropAudioBufferFront

src/core/AudioEngine.cpp:235–244  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

233}
234
235void dropAudioBufferFront(QByteArray& buffer, qsizetype bytes, int sampleRate)
236{
237 const qsizetype dropBytes =
238 std::min(quietStereoFloatTrimPoint(buffer, bytes, sampleRate),
239 alignedStereoFloatBytes(buffer.size()));
240 if (dropBytes > 0) {
241 buffer.remove(0, dropBytes);
242 fadeInStereoFloatFront(buffer, sampleRate);
243 }
244}
245
246void trimReceivePresentationBuffers(QByteArray& rawBuffer,
247 std::deque<QByteArray>& rawPackets,

Callers 1

Calls 5

alignedStereoFloatBytesFunction · 0.85
fadeInStereoFloatFrontFunction · 0.85
sizeMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected