| 95 | } |
| 96 | |
| 97 | void CDallasSoundDlg::OnPlaySoundButton() { |
| 98 | int index; |
| 99 | index = m_SoundList.GetCurSel(); |
| 100 | if (index == LB_ERR) |
| 101 | return; |
| 102 | |
| 103 | CString sound_name; |
| 104 | m_SoundList.GetText(index, sound_name); |
| 105 | |
| 106 | Sound_system.BeginSoundFrame(FALSE); |
| 107 | Sound_system.Play2dSound(FindSoundName(sound_name.GetBuffer(0)), MAX_GAME_VOLUME); |
| 108 | Sound_system.EndSoundFrame(); |
| 109 | } |
| 110 | |
| 111 | void CDallasSoundDlg::OnStopSoundsButton() { Sound_system.StopAllSounds(); } |
| 112 |
nothing calls this directly
no test coverage detected