News for hackers. Stuff that matters.
Re:Apple Music Announces Spatial Audio and Lossless Audio by Loughla on Monday May 17, 2021 @10:53AM (#27184131)
>otherwise there was an annoying pause between tracks that had seemless blending between them.

Oh christ, this is my least favorite thing about newer audio formats. Some of the old albums were meant to be heard in one stretch; there are no gaps between tracks, because you're hearing a story. Then comes mp3 and digital audio, with a second pause between them. It just kills me.

I get accused of being a hipster by my family. I just want to hear the story!

Re:Apple Music Announces Spatial Audio and Lossless Audio by lloeki on Monday May 17, 2021 @02:27PM (#27186485)
I stopped having this issue for well over a decade. Especially on some albums I enjoy there are tracks which are logically separate (on CD as well as files) yet "play" into one another continuously, so I'd have noticed this as it would produce a weird silence in an otherwise seamless musical transition.

It's entirely a player thing to start decoding the next track slightly before the current track ends and continuously feed the audio buffer with no gap. This has nothing to do with mp3 and digital audio, but everything with players that don't conceptually split between reading a file and pushing audio to the output but are just glorified shell for loops over mpg321.

Re:Apple Music Announces Spatial Audio and Lossless Audio by marcan_42 on Monday May 17, 2021 @08:48PM (#27190118)
No, it does. MP3 has an issue with gapless playback. A one second pause is a player thing, but the format itself does not support truly glitchless playback, because it always stores an integer number of audio blocks, and adds padding at the beginning. This is why nobody should ever use MP3 for e.g. sending around clips for video or audio production - quality issues aside, it also screws up the timing and aligning the start of the track.

More modern formats solved this issue by precisely defining the start/end points so decoding can produce an output with precisely the same alignment and number of samples as the input.

There are certainly nonstandard metadata hacks for MP3 to retrofit gapless support into it, but the core format cannot do it.

Re:Apple Music Announces Spatial Audio and Lossless Audio by lloeki on Tuesday May 18, 2021 @05:34AM (#27192727)
> the format itself does not support truly glitchless playback, because it always stores an integer number of audio blocks, and adds padding at the beginning.

I agree, although arguably the MP3 "core format" has had a number of extensions around so many things that ultimately became de facto standards (vendor extensions if you will). I remember how you could not have precise seeking or current time display with VBR, which now seems to be now largely a solved problem.

> There are certainly nonstandard metadata hacks for MP3 to retrofit gapless support

One of these is LAME adding gapless stuff at least as far back as 2003, so yes it's a workaround to a format limitation, but it's quite an old one, and fairly stable and known well enough that it's been a while since encoders default to encode with gapless metadata.

There's an interesting historical explanation here:

https://sourceforge.net/p/lame/bugs/453/#1bd2

I do agree though that the easy path out of it is to just stop using MP3, for this reason and a zillion others ;)

Re:Apple Music Announces Spatial Audio and Lossless Audio by reaperducer on Monday May 17, 2021 @11:52AM (#27184853)
In my collection, this is most evident with Home by the Sea/Second Home by the Sea from Genesis.
Re:Apple Music Announces Spatial Audio and Lossless Audio by Loughla on Tuesday May 18, 2021 @09:33AM (#27194315)
I didn't really pick up on it until I decided to take my son through Thick as Brick and literally any album by Yes. They're just ruined by that small gap.
Re:Apple Music Announces Spatial Audio and Lossless Audio by vile_wretch on Monday May 17, 2021 @02:21PM (#27186415)
I remember when "gapless playback" was a big deal when it was eventually added to iPods.
Re:Apple Music Announces Spatial Audio and Lossless Audio by PaulHoule on Monday May 17, 2021 @12:19PM (#27185194)
Dull tools and people who don't care.

"Good enough" can be the enemy of "correct".