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

Function rawEquivalentAudioBytes

src/core/AudioEngine.cpp:158–166  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

156}
157
158qsizetype rawEquivalentAudioBytes(qsizetype bytes, int sampleRate)
159{
160 if (bytes <= 0 || sampleRate <= 0) {
161 return 0;
162 }
163
164 return alignedStereoFloatBytes(
165 bytes * AudioEngine::DEFAULT_SAMPLE_RATE / sampleRate);
166}
167
168qsizetype quietStereoFloatTrimPoint(const QByteArray& buffer,
169 qsizetype requestedBytes,

Callers 2

AudioEngineMethod · 0.85

Calls 1

alignedStereoFloatBytesFunction · 0.85

Tested by

no test coverage detected