Matt Aimonetti
Matt Aimonetti
Here is a similar conversation with more details about how to convert https://github.com/go-audio/audio/issues/18
One thing to keep in mind is that float64 is extremely rare in audio and it might be annoying/weird to ask to copy a float32 buffer to float64 just because...
I don't see you using the PCMScale transform defined here: https://github.com/go-audio/transforms/blob/master/pcm_scale.go#L27 You have values that are between -1 and +1 as floats and you want to encode them as int...
@mcandre I'm afraid resampling is currently outside of the scope of this library. Resampling isn't trivial and requires audio filtering in the frequency domain https://en.wikipedia.org/wiki/Sample-rate_conversion
I'm honestly not too sure how to offer a transparent way to do that since the seeking is needed to finish writing the header of the file. However, as a...
I'm not in front of my computer but if I recall correctly, it doesn't seem that you are using the port audio API properly. Your buffer isn't 7s long and...
Also you need to close the encoder to add the right headers to the file
Decoding is in place: https://github.com/go-audio/wav/blob/dcba81b6e09adf7ed74753c2c939c9f9ad277b61/cue_chunk.go Encoding still missing
I'm not quite sure what you mean by raw byte data, what data are we talking about? I've never used OpenAL but you can take a look at the wav...
I think that's a good approach but it also comes with a lot of challenges. The main one being that any function receiving a buffer might have to do the...