Question about AudioPlaySdRaw and interrupts

Status
Not open for further replies.

unicornpower

Well-known member
I'm writing an Audio Effect which is an SD recorder/looper with overdub. I'm using the source code for AudioPlaySdRaw audio effect and the Recorder.ino from the Audio examples. It's pretty much finished, I'm now just tidying up the code. My question is the use of enabling and disabling interrupts. AudioPlaySdRaw disables interrupts when opening and closing SD files but not when reading from the SD card. What interrupts is this protecting against? The interrupts from the audio library, or are there some other interrupts running that I'm not aware of?

I already disable Audio interrupts when starting/stopping etc, so I'm wondering if I can safely remove these interrupts enable/disables from my code.
 
Status
Not open for further replies.
Back
Top