An initial investigation of a multi-layered approach for optimizing and parallelizing real-time media and audio applications