| 416 | } |
| 417 | |
| 418 | void TrackList::DataEvent( |
| 419 | const std::shared_ptr<Track> &pTrack, bool allChannels, int code) |
| 420 | { |
| 421 | auto doQueueEvent = [this, code](const std::shared_ptr<Track> &theTrack){ |
| 422 | QueueEvent({ TrackListEvent::TRACK_DATA_CHANGE, theTrack, code }); |
| 423 | }; |
| 424 | if (allChannels) |
| 425 | for (auto channel : Channels(pTrack.get())) |
| 426 | doQueueEvent(channel->shared_from_this()); |
| 427 | else |
| 428 | doQueueEvent(pTrack); |
| 429 | } |
| 430 | |
| 431 | void TrackList::PermutationEvent(TrackNodePointer node) |
| 432 | { |