| 488 | const ParamEntry* FindSound(RString name, SoundPars& pars); |
| 489 | |
| 490 | void DisplayGetReady::PlaySound(RString name) |
| 491 | { |
| 492 | if (name.GetLength() == 0) |
| 493 | { |
| 494 | return; |
| 495 | } |
| 496 | |
| 497 | SoundPars pars; |
| 498 | if (!FindSound(name, pars)) |
| 499 | { |
| 500 | return; |
| 501 | } |
| 502 | _sound = GSoundScene->OpenAndPlayOnce2D(pars.name, pars.vol, pars.freq, false); |
| 503 | _sound->SetKind(WaveMusic); |
| 504 | _sound->SetSticky(true); |
| 505 | } |
| 506 | |
| 507 | void DisplayGetReady::OnButtonClicked(int idc) |
| 508 | { |
nothing calls this directly
no test coverage detected