The "BEEP" function allocates a new XT_Instrument_Class instance, passes it into the Play() function and it is never disposed of once completed. After the DurationCounter for the XT_Instrument_Class::NextSample has count down to zero, the NextSample exits (with sample (0,0)), but this instrument instance remains in the playlist forever (always returning (0,0)). Eventually causing performance impacts (with each subsequent BEEP).
Two issues at hand:
Instrument instance is not being removed from the PlayList once the beep is completed.
Beep instance is not being deleted/freed upon completion.
(Issue is with original library, but posting this here as I was using this fork for development)
The "BEEP" function allocates a new XT_Instrument_Class instance, passes it into the Play() function and it is never disposed of once completed. After the DurationCounter for the XT_Instrument_Class::NextSample has count down to zero, the NextSample exits (with sample (0,0)), but this instrument instance remains in the playlist forever (always returning (0,0)). Eventually causing performance impacts (with each subsequent BEEP).
Two issues at hand:
(Issue is with original library, but posting this here as I was using this fork for development)