first implementation of AudioEngine, implements Shape.getNextSample()