I see a possible weak point here: writing the pointer is not an atomic operation...
If the
period [EDIT: of course I meant..] len counter has finished counting down and the DMA is still active a new sample is taken from the ptr position.
The DMA is turned off immediately, but it is not an instant operation, sample in Paula is played.
Could there possibly be an audio glitch?
Toni should be asked