Here's a modified patch, which uses code from FS#10065 to obtain actual samples on SWCODEC targets. I don't know if there is a way to get samples from the MAS on HWCODEC targets, so the scope is still based on peaks there. I've tested it on 5G sim, 5G 30GB iPod and Archos V2 Recorder.