From 4cd162e064f104ac3605e146b4954fb7b2ef00cf Mon Sep 17 00:00:00 2001 From: skdhg <46562212+skdhg@users.noreply.github.com> Date: Sat, 16 Sep 2023 16:33:49 +0545 Subject: [PATCH] chore: docs --- README.md | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/README.md b/README.md index 9cc1bae..401f16b 100644 --- a/README.md +++ b/README.md @@ -58,7 +58,7 @@ console.log(result); ``` This will output an object containing information about the media file, including the number of channels, sample rate, codec, duration, and metadata. -The default probe size is `10MB`, but you can adjust this as needed by passing the second argument to `probeStream`: +The default probe size is `2MB`, but you can adjust this as needed by passing the second argument to `probeStream`: ```js // probe only 1024 bytes @@ -68,11 +68,6 @@ const { result } = await mediaplex.probeStream(stream, 1024); const { result } = await mediaplex.probeStream(stream, 5 * 1024 * 1024); ``` -// add a note - -> ⚠️ -> Probing a stream is non-blocking as it is done in a worker thread. But probing a buffer is a blocking operation. - ## Opus Encoder Mediaplex also includes an Opus encoder/decoder, which can be used as a drop-in replacement for [`@discordjs/opus`](https://github.com/discordjs/opus). Here's an example on how to use it: