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

Function sampleFormatName

src/core/DeviceDiagnostics.cpp:29–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27}
28
29QString sampleFormatName(QAudioFormat::SampleFormat format)
30{
31 switch (format) {
32 case QAudioFormat::Unknown: return QStringLiteral("Unknown");
33 case QAudioFormat::UInt8: return QStringLiteral("UInt8");
34 case QAudioFormat::Int16: return QStringLiteral("Int16");
35 case QAudioFormat::Int32: return QStringLiteral("Int32");
36 case QAudioFormat::Float: return QStringLiteral("Float");
37 default: return QStringLiteral("Unknown");
38 }
39 return QStringLiteral("Unknown");
40}
41
42QJsonObject formatToJson(const QAudioFormat& format)
43{

Callers 3

startPlaybackMethod · 0.70
formatToJsonFunction · 0.70
formatAudioAttemptFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected