unicornpower
Well-known member
Under what circumstances does receiveReadOnly return null? The library documentation says it's possible, and that you should treat this like a block of silent audio. I'm writing a looper effect which uses the SD card to save the loop. I get receiveReadOnly returning null every few seconds (so it's clearly worked fine thousands of times in between). I'm recording a loop of continuous audio (with no silence), so inserting blocks of silence into the loop seems wrong? I assumed update() on the effect was only called when the next sample block was ready?
I'm allocating 512 blocks of AudioMemory, and only allocating 1 per update, so I don't think that's the issue. I just wanted to understand the reasons it returns nulls to help me debug some audio glitches I'm having.
Thanks!
I'm allocating 512 blocks of AudioMemory, and only allocating 1 per update, so I don't think that's the issue. I just wanted to understand the reasons it returns nulls to help me debug some audio glitches I'm having.
Thanks!