katspaugh / wavesurfer.js

Audio waveform player
https://wavesurfer.xyz
BSD 3-Clause "New" or "Revised" License
8.79k stars 1.63k forks source link

Weird sound on iOS #624

Closed pmcp closed 8 years ago

pmcp commented 8 years ago

I'm using the plugin in an Ionic app. It's working really well, but on iOS I get a very ugly sound. It gets the music from preview files from spotify. Could that has something to do with it? On desktop it works perfectly, so it seems to be iOS related.

mxmtsk commented 8 years ago

+1 I have the same thing on iOS - the sound is somehow very noisy http://ulrikejährling.de/referenzen/

cankemik commented 8 years ago

same here. problem is issue occurs randomly so that i can't debug and errors can be seen

any solutions to this issue ?

kaitlynhova commented 8 years ago

I'm having the same issue, but it's only on my x-code's ios emulator. Which devices is it gross on for you guys?

cankemik commented 8 years ago

@kaitlynhova i've tested on iphone 5s and 6. both are ios 9.

pmcp commented 8 years ago

Me too, iOS9.

AdolfVonKleist commented 8 years ago

Maybe this?

http://www.html5gamedevs.com/topic/17326-ios-9-webaudio-issues/

http://www.holovaty.com/writing/ios9-web-audio/

Both suggest using 'touchend' instead of 'touchstart' (I have not yet checked whether this could really be the issue here in the source, but it seems plausible)

On Fri, Feb 12, 2016 at 2:15 PM, Maarten Lauwaert notifications@github.com wrote:

Me too, iOS9.

— Reply to this email directly or view it on GitHub https://github.com/katspaugh/wavesurfer.js/issues/624#issuecomment-183324443 .

katspaugh commented 8 years ago

I experienced the coarse techno-like sound distortion in iOS Safari yesterday, too. It disappeared after a reload.

a4jp-com commented 8 years ago

I also heard this the first time I played recordings on my site just the first time on an iPad Pro. After everything had loaded, I pressed refresh everything played smoothly.

ghost commented 8 years ago

:+1:

hobbes7878 commented 8 years ago

Continue to get distortion on iOS 9 on first load of the audio file.

weavermedia commented 8 years ago

Same here. Tested on iPhone 5S on iOS 9.3. Always disappears after a page refresh.

The sound is like a music production effect called a 'bitcrusher' which deliberately discards some of the audio information as a creative effect.

https://en.wikipedia.org/wiki/Bitcrusher

Hoping my description might help track down the cause. It could just be an iOS issue, although I haven't heard this distortion on any other audio clips on any other sites on my phone.

katspaugh commented 8 years ago

While I don't have a proper solution for this, a work-around would be to use the backend: 'MediaElement option if it's suitable for your application.

sritej commented 8 years ago

I am trying to use this plugin in a ionic app. I have copied the controller part and the html links to wavesurfer file. I am able to play the audio but the seekbar is not getting updated and when i select an other audio, the waves are not getting updated. Is there any one got it worked with an ionic app.

I have used the code sample from example - angular folder.

Any help is very much appreciated.