Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

seek() returning howler object unexpectedly #1189

Closed
matt-way opened this issue Jun 14, 2019 · 15 comments
Closed

seek() returning howler object unexpectedly #1189

matt-way opened this issue Jun 14, 2019 · 15 comments

Comments

@matt-way
Copy link

If the seek() function is called while audio is loaded, except the play lock is true, it will return the howler object instead of the current time.

if (self._state !== 'loaded' || self._playLock) {

@martinratinaud
Copy link

This happens to me also

@JetDu0319
Copy link

How to deal with this problem

@lamasfoker
Copy link

Me too

@soend
Copy link

soend commented Nov 27, 2019

Need help with this also.

@inear
Copy link

inear commented Dec 9, 2019

Same here. Plus, is it useful to add it to the _queue array if the seek call has no arguments? I have a problem where I read the time with seek() each frame to display the time, and the array keeps filling up if playLock is true. No reason to run a seek() later when playLock is false. Could even fix so any seek(time) that exists earlier in the queue for a specific sound is removed to avoid jumping all over the file later.

@inear
Copy link

inear commented Dec 9, 2019

My workaround since long time ago is:

let time = Number(mySound.seek())
if (isNaN(time)) {
  time = mySound._sounds[0]._seek
}

@TrevorHinesley
Copy link

Definitely still an issue, but @inear's workaround works great.

@DurinMusicspear
Copy link

I also have this issue, took me a while to find out what was happening!

@Rem486
Copy link

Rem486 commented Mar 30, 2020

I had the same problem, especially .wav

@madStitcher
Copy link

This is an issue we are running up against as well. Next month this issue will be a year old!

@s16h
Copy link

s16h commented May 14, 2020

@goldfire, what are your thoughts on this?

@abrehamgezahegn
Copy link

Same problem here. I have a feeling that it's somehow related to this issue too. @goldfire can you investigate.

@blmage
Copy link

blmage commented Jul 8, 2020

Shouldn't the _playLock flag be considered only when seek is a number?

@fritzfr
Copy link

fritzfr commented Sep 3, 2020

Still an issue...

@andybloch
Copy link

Still seems to be an issue. (This plus a couple of other issues make me regret ever using howler.)

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

No branches or pull requests