question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

What

  • Reduce sound interuption between two songs

Currently, when a song is over, the src of the audio tag is changed, but the tag has to preload the file a bit. So there is a micro interruption of a few miliseconds.

  • Crossfading option between song ?

How

~Instead of having a single Audio object, need to have an array of 3: [previous, current, next]. Then when playing next or previous, it should be faster, cause tracks will already be loaded + Pop/Shift audio when needed.~ not working :[

Issue Analytics

  • State:open
  • Created 8 years ago
  • Reactions:3
  • Comments:18 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
martpiecommented, Feb 24, 2020

@s0 great to hear! #128 is a blocker for that though. I really want to solve this so I will try to find myself some time to work on AudioContext.

I would also like to try https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/audioTracks as maybe Gapless playback comes baked in.

1reaction
s0commented, Feb 24, 2020

I’ve been playing around with the WebAudio API in Musseks for a slightly different reason (accurate timestamps for synchronizing audio with lighting with my synesthesia project), which it turned out the HTML <audio> tag was insufficient for (see https://github.com/synesthesia-project/synesthesia/tree/master/precise-audio). I’d be willing to attempt implementing gapless playback in Museeks using web audio, though I cannot provide a timescale.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Gapless playback - Wikipedia
Gapless playback is the uninterrupted playback of consecutive audio tracks, such that relative time distances in the original audio source are preserved ...
Read more >
What is gapless playback? - Darko.Audio
Gapless playback – “the uninterrupted playback of consecutive audio tracks” – is a concept that's well known to veteran music streamers.
Read more >
When the Gapless Playback function is set to - Sony Corporation
When the Gapless Playback function is set to [Auto], the HDD AUDIO PLAYER plays tracks without the silent part between tracks. This is...
Read more >
What is Gapless playback and Crossfade? : r/audiophilemusic
Normally you want to have gapless playback if you are listening to an entire album because often songs are meant to blend into...
Read more >
Gapless Playback Issue - Apple Support Communities
Gapless Playback Issue. Hi, I have recently noticed an issue where pauses have suddenly appeared on an album that should have no gaps ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found