Closed yanqui-uxo closed 1 month ago
I could have sworn I accounted for this. Do you have somewhere I can get the offending audio file?
Actually, the reason for this bug makes sense. Yes, I would accept a PR.
It's also possible that un &ae
could return the sample rate.
That way, you could resample it manually with keep
.
It also would prevent you from mucking up the data by resampling when you don't need to.
I noticed that when I decoded and attempted to play audio from a .wav file that had a different sample rate than what was used by Uiua, it sounded sped up. I propose that Uiua automatically resample the decoded audio to match the sample rate used. I am willing to make a pull request if this is agreeable.