MP3: Varying number of channels within a file not supported

Bug #1448224 reported by Uwe Klotz
4
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mixxx
Fix Released
High
Unassigned

Bug Description

SoundSourceMp3 from the new SoundSource API currently rejects MP3 files with a varying number of channels between different MP3 frames.

Proposed Solution:
- Use the maximum number of channels from all MP3 frame headers when loading the file -> 1 or 2 channels
- When decoding an MP3 frame with only 1 channel for a SoundSource with 2 channels duplicate the samples

Up to version 1.12.0 those mono MP3 frames are simply being treated as stereo frames. This approach might work, but is wrong if the MP3 frame header itself is correct.

Tags: soundsource
Revision history for this message
Uwe Klotz (uklotzde-deactivatedaccount) wrote :

I will take care of this bug, because it also affects me ;)

Changed in mixxx:
assignee: nobody → Uwe Klotz (uklotzde)
Revision history for this message
Uwe Klotz (uklotzde-deactivatedaccount) wrote :
description: updated
Changed in mixxx:
status: New → Confirmed
importance: Undecided → High
Revision history for this message
Uwe Klotz (uklotzde-deactivatedaccount) wrote :

I found another bug that causes some ugly noises at the beginning of some MP3 files. The result/error code handling for libmad was wrong! The following PR will fix this, too.

Positive side effect: Some frames with inconsistent data might be skipped entirely now :)

Revision history for this message
Uwe Klotz (uklotzde-deactivatedaccount) wrote :
Changed in mixxx:
status: Confirmed → In Progress
Changed in mixxx:
status: In Progress → Fix Committed
tags: added: soundsource
removed: newsoundsourceapi
RJ Skerry-Ryan (rryan)
Changed in mixxx:
milestone: none → 2.1.0
Changed in mixxx:
status: Fix Committed → Fix Released
Revision history for this message
Swiftb0y (swiftb0y) wrote :

Mixxx now uses GitHub for bug tracking. This bug has been migrated to:
https://github.com/mixxxdj/mixxx/issues/7983

lock status: Metadata changes locked and limited to project staff
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.