I am working on an android audio filtering app and there are sometimes small clicks (about one every five seconds, but it's erratic) in the filtered audio. I am writing to AudioTrack and doing digital signal processing at the same time. When I write all of the audio to a buffer and then play back from the buffer, the clicks go away. I've verified via log messages that the digital signal processing is always at least 0.5 seconds ahead of the number of samples that have been written to the AudioTrack, so there are no problems there. I am guessing that maybe the clicks come from the intensiveness of the filtering operations on the CPU, but I'm not sure.
My question is: is there a way to ask Android to report an error message (and, even better, a stack trace) to the log whenever it cannot write a sample to the sound card at the sample rate? More generally, what type of information is available to debug these errors?
Aucun commentaire:
Enregistrer un commentaire