| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
* Remove ossaudiodev extension in configure.ac and regenerate the configure script. * Remove ossaudiodev in Modules/Setup and Modules/Setup.stdlib.in.
|
Using import ossaudiodev|from ossaudiodev regex, I only found a single project in PyPI top 5,000 projects (2023-04-13) using the ossaudiodev: nltk. See nltk/corpus/reader/timit.py. This code tries ossaudiodev but catches properly ImportError and uses pygame if the ossaudiodev module is missing. If ossaudiodev and pygame are missing, it displays the error message: you must install pygame or ossaudiodev for audio playback. In the What's New In Python 3.13 entry, I suggest replacing ossaudiodev with pygame. IMO pygame is a more portable since it supports multiple audio playback backend depending on the platform, whereas ossaudiodev only supports OSS backend (ex: it doesn't support Windows). |
Sorry, something went wrong.
There was a problem hiding this comment.
Can these bits also be deleted?
configure 13492: OSSAUDIODEV_LIBS="-lossaudio" ;; #( 13494: OSSAUDIODEV_LIBS="" configure.ac 3921: [NetBSD*], [OSSAUDIODEV_LIBS="-lossaudio"], 3922: [OSSAUDIODEV_LIBS=""]
Sorry, something went wrong.
| (Contributed by Victor Stinner in :gh:`104773`.) | ||
|
|
||
| * :pep:`594`: Remove the :mod:`!ossaudiodev` module, deprecated in Python 3.11: | ||
| use the `pygame project <https://www.pygame.org/>`_ for audio playback. |
There was a problem hiding this comment.
Shall we also/instead mention the pygame-ce fork? https://pyga.me
More info: https://www.reddit.com/r/pygame/comments/1112q10/pygame_community_edition_announcement/
Sorry, something went wrong.
There was a problem hiding this comment.
I would prefer to only link to pygame for now. It's unclear to me where the community goes, but so far, "pygame" remains the reference project. I hope that the two communities will merge again. If not, we can update the doc later. The problem is that the Python documentation is not updated frequently.
Sorry, something went wrong.
There was a problem hiding this comment.
Can we also delete Lib/test/audiotest.au?
Sorry, something went wrong.
There was a problem hiding this comment.
My PR #104863 removes it.
Sorry, something went wrong.
I created PR #104864 to remove it. Well spotted, I missed that one. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
📚 Documentation preview 📚: https://cpython-previews--104862.org.readthedocs.build/