I have been writing a little programme to record audio to mp3 files over long periods of time. the problem I am having is i get little audio clicks. Being that its just recording to file latency is not an issue to i have it set all the way up at 300 and i have tried various block sizes but this doesnt appear to have helped. Could someone have a look at the method below and advise or even just tell me if they are seeing the same issue. Thanks

I am recording from the adc~ object which comes from the built in input on my mac to the mp3write~ object in PD extended. I am using the default settings, 44.1k, 128bps, quality 1. I am recording a sine tone which is recorded fine for hours but with little clicks and pops. Could anyone advise?