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 python-sounddevice and set it the default audio library #69

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ptsmonteiro
Copy link

This adds support for the python-sounddevice audio library (and makes it the default) which makes amodem work out-of-the-box on Linux, Windows and MacOS.

@romanz romanz self-assigned this Jan 4, 2024
@romanz romanz self-requested a review January 4, 2024 20:09
Copy link
Owner

@romanz romanz left a comment

Choose a reason for hiding this comment

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

Many thanks for the contribution!

Could you please fix the CI failures?
https://github.com/romanz/amodem/actions/runs/7413654726/job/20175146678?pr=69#step:5:16

@ptsmonteiro
Copy link
Author

Should be good now.

Copy link
Owner

@romanz romanz left a comment

Choose a reason for hiding this comment

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

@romanz romanz self-requested a review January 8, 2024 16:28
Copy link
Owner

@romanz romanz left a comment

Choose a reason for hiding this comment

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

Please also squash the commits.

amodem/sd.py Outdated Show resolved Hide resolved
@@ -234,9 +235,12 @@ def interface_factory():
import pylab # pylint: disable=import-error,import-outside-toplevel
args.pylab = pylab

if args.audio_library == 'ALSA':
if args.audio_library == 'alsa':
Copy link
Owner

Choose a reason for hiding this comment

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

Can we keep the old value (for compatibility)?

Copy link
Author

Choose a reason for hiding this comment

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

We can but the ALSA option wasn't even documented before...

.gitignore Outdated Show resolved Hide resolved
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