Implement the constructor and getChannelData function, working towards the functionality that we need in order to implement OfflineAudioContext.