Tonejs / Tone.js

A Web Audio framework for making interactive music in the browser.
https://tonejs.github.io
MIT License
13.51k stars 983 forks source link

There is no resume function for Tone.Recorder #1026

Open samymsa opened 2 years ago

samymsa commented 2 years ago

The title says it all.

The MediaRecorder API actually does provide a MediaRecorder.resume() function. But, unforunately, Tone.js doesn't.

This means that whenever I pause my Recorder using Tone.Recorder.pause(), I won't ever be able to resume it. If I try to, I'll get the following error : Failed to execute 'start' on 'MediaRecorder': The MediaRecorder's state is 'paused'

tambien commented 2 years ago

After calling pause, i believe you can restart the recording using start().

samymsa commented 2 years ago

That's what I thought, but doing this raises an error

Le ven. 4 févr. 2022 à 03:29, Yotam Mann @.***> a écrit :

After calling pause, i believe you can restart the recording using start() .

— Reply to this email directly, view it on GitHub https://github.com/Tonejs/Tone.js/issues/1026#issuecomment-1029582613, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARKM4E7LTUVZRHWXFX5TOSTUZM2YXANCNFSM5NNSCW4A . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>