|
@@ -16,7 +16,7 @@ export default class Crunker {
|
|
this._sampleRate = sampleRate
|
|
this._sampleRate = sampleRate
|
|
this._concurrentNetworkRequests = concurrentNetworkRequests
|
|
this._concurrentNetworkRequests = concurrentNetworkRequests
|
|
}
|
|
}
|
|
- private _createContext(sampleRate = 44_100): AudioContext {
|
|
|
|
|
|
+ private _createContext(sampleRate = 22050): AudioContext {
|
|
window.AudioContext = window.AudioContext || (window as any).webkitAudioContext || (window as any).mozAudioContext
|
|
window.AudioContext = window.AudioContext || (window as any).webkitAudioContext || (window as any).mozAudioContext
|
|
return new AudioContext({ sampleRate })
|
|
return new AudioContext({ sampleRate })
|
|
}
|
|
}
|