Thanks to visit codestin.com
Credit goes to github.com

Skip to content

add compatibility for AudioOut API changes in CP 3.x #10

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

Merged
merged 1 commit into from
Oct 10, 2018
Merged

add compatibility for AudioOut API changes in CP 3.x #10

merged 1 commit into from
Oct 10, 2018

Conversation

idcrook
Copy link
Contributor

@idcrook idcrook commented Oct 9, 2018

PR for fix of #8
tested on a CPX

  • added sys import since that is what is used for version detection

  • added updated sample generation for 3.x AudioOut.play()

    • .play(loop=False) (2.x) -> .play(sample, *, loop=False) (3.)
  • updated audioio.AudioOut() constructor to be 3.x compatiible

 - added `sys` import since that is what is used for version detection

 - added updated sample generation for 3.x AudioOut.play()
      - .play(loop=False) (2.x) -> .play(sample, *, loop=False) (3.)

 - updated audioio.AudioOut() constructor to be 3.x compatiible
@idcrook
Copy link
Contributor Author

idcrook commented Oct 10, 2018

Verified to work on both CP 3.x/libs and CP 2.x/libs on CPX 😄

Copy link
Member

@tannewt tannewt left a comment

Choose a reason for hiding this comment

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

Thanks for the fix!

@tannewt tannewt merged commit 6d6d3f3 into adafruit:master Oct 10, 2018
tannewt pushed a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Nov 12, 2018
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