| 1152 | } |
| 1153 | |
| 1154 | void DrumPlayer::ButtonClicked(ClickButton* button, double time) |
| 1155 | { |
| 1156 | /*if (button == mSaveButton) |
| 1157 | SaveKits(); |
| 1158 | if (button == mNewKitButton) |
| 1159 | CreateKit();*/ |
| 1160 | if (button == mShuffleButton) |
| 1161 | ShuffleKit(); |
| 1162 | |
| 1163 | for (int i = 0; i < NUM_DRUM_HITS; ++i) |
| 1164 | { |
| 1165 | if (button == mDrumHits[i].mTestButton) |
| 1166 | PlayNote(time, i, 127); |
| 1167 | if (button == mDrumHits[i].mRandomButton) |
| 1168 | mDrumHits[i].LoadRandomSample(); |
| 1169 | if (button == mDrumHits[i].mGrabSampleButton) |
| 1170 | mDrumHits[i].GrabSample(); |
| 1171 | if (button == mDrumHits[i].mNextButton) |
| 1172 | mDrumHits[i].LoadNextSample(1); |
| 1173 | if (button == mDrumHits[i].mPrevButton) |
| 1174 | mDrumHits[i].LoadNextSample(-1); |
| 1175 | } |
| 1176 | } |
| 1177 | |
| 1178 | void DrumPlayer::DrumHit::LoadSample(std::string path) |
| 1179 | { |
nothing calls this directly
no test coverage detected