Skip to content
This repository was archived by the owner on Mar 8, 2026. It is now read-only.

Commit 1c191a3

Browse files
resample WIP(1)
1 parent d8f2c86 commit 1c191a3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/soundWorklet.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,4 +73,4 @@ const script = new Blob([ResamplerProcessorWorklet], {
7373
type: 'application/javascript',
7474
});
7575
const src = URL.createObjectURL(script);
76-
export const ResamplerProcessorSrc = src;
76+
export const ResamplerProcessorSrc = src;

src/webRTC.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,11 +160,11 @@ export class WebRTC {
160160

161161
// 2. Create a MediaStreamSource
162162
const source = audioContext.createMediaStreamSource(ms);
163-
163+
164164
// 3. Get the sampling rate from the AudioContext
165165
const sampleRate = audioContext.sampleRate;
166-
167-
console.log("Sampling Rate:", sampleRate);
166+
167+
console.log('Sampling Rate:', sampleRate);
168168
const microphone = ms.getTracks()[0];
169169
if (!microphone) {
170170
throw new Error('No microphone found');

0 commit comments

Comments
 (0)