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

Function makeFormat

src/core/AudioDeviceNegotiator.cpp:23–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21}
22
23QAudioFormat makeFormat(int rate, AFN::SampleFmt fmt, int channels)
24{
25 QAudioFormat f;
26 f.setSampleRate(rate);
27 f.setChannelCount(channels);
28 f.setSampleFormat(toQt(fmt));
29 return f;
30}
31
32AFN::DeviceCaps probe(const QAudioDevice& dev, AFN::Direction dir, AFN::TargetOs os,
33 bool bluetoothHfp, int preferredRateOverride)

Callers 4

probeFunction · 0.85
negotiateFunction · 0.85
formatLadderFunction · 0.85
startRxStreamMethod · 0.85

Calls 2

toQtFunction · 0.85
setSampleRateMethod · 0.80

Tested by

no test coverage detected