| 57 | } |
| 58 | |
| 59 | bool CSongData::IsPatternInUse(stChannelID Channel, unsigned int Pattern) const |
| 60 | { |
| 61 | // Check if pattern is addressed in frame list |
| 62 | if (Pattern < MAX_PATTERN) |
| 63 | if (auto *pTrack = GetTrack(Channel)) |
| 64 | for (unsigned i = 0; i < GetFrameCount(); ++i) |
| 65 | if (pTrack->GetFramePattern(i) == Pattern) |
| 66 | return true; |
| 67 | return false; |
| 68 | } |
| 69 | |
| 70 | unsigned CSongData::GetFreePatternIndex(stChannelID Channel, unsigned Whence) const { // // // |
| 71 | while (++Whence < MAX_PATTERN) |
no test coverage detected