MCPcopy Create free account
hub / github.com/GrapheneCt/NetStream / AudioParamsToQualityString

Method AudioParamsToQualityString

NetStream/source/utils.cpp:451–481  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

449}
450
451void utils::AudioParamsToQualityString(wstring& res, uint32_t ch, uint32_t srate, bool selected)
452{
453 if (selected)
454 {
455 res = L"→ ";
456 }
457
458 if (!IsAudioSupported(ch, srate))
459 {
460 res += L"(Unsupported) ";
461 }
462
463 switch (ch)
464 {
465 case 1:
466 res += L"Mono, ";
467 break;
468 case 2:
469 res += L"Stereo, ";
470 break;
471 }
472
473 wchar_t tmp[64];
474 sce_paf_swprintf(tmp, 64, L"%.3f KHz", srate / 1000.0f);
475 res += tmp;
476
477 if (selected)
478 {
479 res += L" ←";
480 }
481}
482
483bool utils::IsVideoSupported(uint32_t width, uint32_t height)
484{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected