| 449 | } |
| 450 | |
| 451 | void 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 | |
| 483 | bool utils::IsVideoSupported(uint32_t width, uint32_t height) |
| 484 | { |
nothing calls this directly
no outgoing calls
no test coverage detected