| 624 | void DisplayNewUser::Preview(RString speaker, float pitch) |
| 625 | { |
| 626 | int index = ENGINE_CONFIG.singleVoice ? 1 : 0; |
| 627 | RString dir = (Pars >> "CfgVoice" >> speaker >> "directories")[index]; |
| 628 | RString word = Pars >> "CfgVoice" >> "preview"; |
| 629 | RString name = RString("voice\\") + dir + word + RString(".wss"); |
| 630 | |
| 631 | _previewSpeech = GSoundScene->OpenAndPlayOnce2D(name, 1, pitch, false); |
| 632 | if (_previewSpeech) |
| 633 | { |
| 634 | _previewSpeech->SetKind(WaveSpeech); |
| 635 | _head->AttachWave(_previewSpeech, pitch); |
| 636 | } |
| 637 | } |
| 638 | |
| 639 | bool DisplayNewUser::CanDestroy() |
| 640 | { |
| 641 | if (!Display::CanDestroy()) |
| 642 | { |
nothing calls this directly
no test coverage detected