()
| 91 | * Testing Utilities for browser audio stream. |
| 92 | */ |
| 93 | export function setupFakeAudioStream() { |
| 94 | navigator.mediaDevices.getUserMedia = async () => { |
| 95 | const stream = new MediaStream(); |
| 96 | return stream; |
| 97 | }; |
| 98 | // tslint:disable-next-line:no-any |
| 99 | (window as any).AudioContext = FakeAudioContext; |
| 100 | } |
| 101 | |
| 102 | export class FakeAudioContext { |
| 103 | readonly sampleRate = 44100; |
no outgoing calls
no test coverage detected
searching dependent graphs…