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

MP3 import based on libmpg123 #3079

Merged
merged 2 commits into from Jun 16, 2022
Merged

MP3 import based on libmpg123 #3079

merged 2 commits into from Jun 16, 2022

Conversation

crsib
Copy link
Member

@crsib crsib commented Jun 15, 2022

Resolves: #2236
Resolves: #2634
Resolves: #3029

Audacity uses libmad to import MP3 files. It seems that this library struggles to play some allegedly valid mp3 files.
Similar behavior is observed when using madplay.

This PR introduces an alternative MP3 importer, based on libmpg123, which is known to be used by major software, such as VLC.

  • I signed CLA
  • The title of the pull request describes an issue it addresses
  • If changes are extensive, then there is a sequence of easily reviewable commits
  • Each commit's message describes its purpose and effects
  • There are no behavior changes unnecessary for the stated purpose of the PR

Recommended:

  • Each commit compiles and runs on my machine without known undesirable changes of behavior

@crsib crsib added this to the Audacity 3.2 milestone Jun 15, 2022
@crsib crsib requested review from Paul-Licameli and ksoze95 Jun 15, 2022
@crsib crsib self-assigned this Jun 15, 2022
@@ -706,7 +706,7 @@ list( APPEND SOURCES
>

$<$<BOOL:${USE_LIBMAD}>:
import/ImportMP3.cpp
import/ImportMP3_MAD.cpp
Copy link
Member

@Paul-Licameli Paul-Licameli Jun 15, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The old file name is still mentioned in comments in itself and in Import.cpp.

Copy link
Member Author

@crsib crsib Jun 15, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will check!

Copy link
Member Author

@crsib crsib Jun 15, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in comments in itself

This is fixed

Copy link
Member Author

@crsib crsib Jun 15, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Anyway, I have restructured commits to improve it

@crsib crsib force-pushed the 2236_libmpg123 branch 3 times, most recently from 8f039b6 to b3174da Compare Jun 16, 2022
@crsib crsib merged commit 2eb685a into audacity:master Jun 16, 2022
1 of 10 checks passed
@crsib crsib deleted the 2236_libmpg123 branch Jun 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
3 participants