prelim implementation for AudioPatch.cpp