| 1176 | } |
| 1177 | |
| 1178 | void DrumPlayer::DrumHit::LoadSample(std::string path) |
| 1179 | { |
| 1180 | mOwner->LoadSampleLock(); |
| 1181 | mSample.Read(path.c_str()); |
| 1182 | mOwner->LoadSampleUnlock(); |
| 1183 | //mSample.Play(gTime, mSpeed, 0); |
| 1184 | //mVelocity = .5f; |
| 1185 | mEnvelopeLength = mSample.LengthInSamples() * gInvSampleRateMs; |
| 1186 | for (size_t i = 0; i < mPlayheads.size(); ++i) |
| 1187 | mPlayheads[i].mStartTime = -1; |
| 1188 | } |
| 1189 | |
| 1190 | void DrumPlayer::DrumHit::LoadRandomSample() |
| 1191 | { |
no test coverage detected