Skip to content
This repository has been archived by the owner on Oct 31, 2024. It is now read-only.

Caching Tab Sound #1

Open
bmFicg opened this issue Dec 28, 2016 · 6 comments
Open

Caching Tab Sound #1

bmFicg opened this issue Dec 28, 2016 · 6 comments

Comments

@bmFicg
Copy link

bmFicg commented Dec 28, 2016

When browserTranscripbe runs in the background by switching Tabs, the music sounds choppy. (System; Chrome 57 Win10)

@bmFicg bmFicg changed the title Chaching Tab Sound Caching Tab Sound Dec 28, 2016
@jsphweid
Copy link
Owner

@tolkanabroski Hi! Like just the switching causes the choppiness or letting it sit on a random non-browserTranscribe tab makes it choppy?

@bmFicg
Copy link
Author

bmFicg commented Dec 28, 2016

Maybe :

@bmFicg
Copy link
Author

bmFicg commented Dec 28, 2016

@jsphweid Okay, i think its your server-response time, cos i'm in Germany and get latency. Nice to know, i just wondering the first time.

Maybe pre-buffer few sec before playing will solve the issue for users in the rest of the world.

@bmFicg
Copy link
Author

bmFicg commented Dec 28, 2016

@jsphweid attached image of my ping output
pingjsweid

@jsphweid
Copy link
Owner

There are some buffer controls that can be changed but I don't understand what server response time would have to do with this, considering the file is loaded fully into a buffer locally in your browser before it even starts playing; the only communication with the server is getting the .html, .js, etc.

I figure a lot of the scratches are because of interrupting the wave (doesn't end on a zero-crossing). Typically those are minimized with extremely small fade in's and out's as I'm sure you know. I added some of that functionality for the play/pause button (spacebar), but it's kind of hard for me to find the right place to put them in the wavesurfer library :/

@bmFicg
Copy link
Author

bmFicg commented Dec 28, 2016

@jsphweid okay i see.
I not familiar with wavesurferjs.
i recommend to do some low-level WebAudio tutorials, just to get and understanding whats happening under the hood of an library (in general) helps a lot with fixing bugs.
https://jsfiddle.net/user/nabr/fiddles/

Like your idea! looks great so far!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants