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

Add support for writing to MP3 files #146

Merged
merged 5 commits into from
Jan 29, 2024
Merged

Add support for writing to MP3 files #146

merged 5 commits into from
Jan 29, 2024

Conversation

hagenw
Copy link
Member

@hagenw hagenw commented Jan 26, 2024

After introducing read support for MP3 file with libsndfile in #145, this pull requests uses libsndfile to write MP3 files.
The most important part is that we add 'mp3' as supported part to MAX_CHANNELS to not get an error when trying to write it. Otherwise, we just need to pass it on to soundfile as with reading.

So the main part of this pull request is updating the documentation and simplifying the tests as we no longer need ffmpeg` to create MP3 files in the tests.

image

@hagenw hagenw marked this pull request as draft January 26, 2024 11:24
@hagenw hagenw marked this pull request as ready for review January 26, 2024 12:05
@hagenw hagenw requested a review from schruefer January 26, 2024 12:23
@schruefer
Copy link
Member

Thank you, It looks good to me.

P.S. I had to update my audmath version for the tests to pass, I don't know if I just used an old venv or if we should specify a minimum audmath version.

@hagenw
Copy link
Member Author

hagenw commented Jan 29, 2024

P.S. I had to update my audmath version for the tests to pass, I don't know if I just used an old venv or if we should specify a minimum audmath version.

Very good catch, I created #148 to tackle this in a different pull request.

@hagenw hagenw merged commit 9cbc1bc into main Jan 29, 2024
34 checks passed
@hagenw hagenw deleted the mp3-writing branch January 29, 2024 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants