MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / OnPlaySoundButton

Method OnPlaySoundButton

editor/DallasSoundDlg.cpp:97–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95}
96
97void 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
111void CDallasSoundDlg::OnStopSoundsButton() { Sound_system.StopAllSounds(); }
112

Callers

nothing calls this directly

Calls 6

FindSoundNameFunction · 0.85
BeginSoundFrameMethod · 0.80
Play2dSoundMethod · 0.80
GetBufferMethod · 0.80
EndSoundFrameMethod · 0.80
GetTextMethod · 0.45

Tested by

no test coverage detected