GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||
GeezerVison is showing github.com — gh-60729: Add support for floating point wave files. by lkoenig · Pull Request #102574 · python/cpython Conversation
|
|
Most changes to Python require a NEWS entry. Please add it using the blurb_it web app or the blurb command-line tool. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I want to update the documentation also but want to get a sense if I am out of my mind first. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
f7bd78b to
4ee51f5
Compare
There was an error while loading. Please reload this page.
|
Hi @lkoenig ! I know it's been a long time since you submitted this PR. Right now it no longer applies because sunaudio and aifc have been removed from python stdlib.! I've recently published newwave, a drop-in replacement for stdlib wave. I've added your patch to it, thanks!! But I also changed it a little bit; I renamed 'encoding' to 'format' which I think makes more sense in the case of wave files. What do you think? Also, in IEEE wave files, a 'fact' chunk is required as per the spec. Audacity would load any wave files without a fact chunk but it will generate fact chunks in IEEE wave audio files when writing. So, this should be added to your PR. In my module I've added this for any non-PCM wave files, see https://codeberg.org/michielb/newwave/commit/b0429ba553ba039966c79a5e21ee027cbd3f5194 To cpython maintainers: I think in general this addition seems to make sense, and if @lkoenig might or might not be available I'd be willing to also help a little getting this into shape! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
This looks like a reasonably simple to try. Personally, not knowing much about the wave format, I can't yet promise I'll merge it, but if you're willing to explain things we can get there. As it's been a few years, it's probably best if you do the merge in your own branch and open a new PR. Ideally, preserve the original commit.
Could you link to the place where this is specified? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Sure, I'll create a PR with my proposal, including @lkoenig original commit. I did that also in my newwave module :-) My main problem is actually that in my opinion support for writing |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I'd suggest doing the simpler change first :) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Hi @mbeijen! Feel free to reuse it. I skimmed the change I made some times ago and it still feel ok to me. I'll try to update the PR to the up to date code. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
This adds support for floating point wav files and fix python#60729.
4ee51f5 to
4022661
Compare
I've created #145384 now with the commit from @lkoenig and with my changes on top.
Sure, I linked this in the commit message! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Let's move to #145384, then! Thanks for the starting PR, |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
wave file module does not support 32bit float format
There was an error while loading. Please reload this page.