The length property of the OfflineAudioContext interface returns an integer representing the size of the buffer in sample-frames.
length
OfflineAudioContext
An integer representing the size of the buffer in sample-frames.