| 213 | } |
| 214 | |
| 215 | void CSoundGen::SelectChip(CSoundChipSet Chip) |
| 216 | { |
| 217 | if (IsPlaying()) { |
| 218 | StopPlayer(); |
| 219 | } |
| 220 | |
| 221 | if (!WaitForStop()) { |
| 222 | TRACE(L"CSoundGen: Could not stop player!"); |
| 223 | return; |
| 224 | } |
| 225 | |
| 226 | PostThreadMessageW(WM_USER_SET_CHIP, Chip.GetFlag(), 0); |
| 227 | } |
| 228 | |
| 229 | void CSoundGen::DocumentPropertiesChanged(CFamiTrackerDoc *pDocument) |
| 230 | { |