Manually building stream formats #1315
|
Hello everyone, I’m new to CPAL, and I’m trying to port an audio processing application to rust based web application. I have a couple of questions that I couldn’t find the answers of which in the documentation provided.
This is how I'm manually configuring it
It would be really great if anyone can drop a helpful link here. Thank you! . |
Replies: 2 comments
|
PCM, or Pulse Code Modulation, is just the standard encoding of all raw sample data. I.e. I think you already got what you want? Otherwise you can record it to analog tape maybe if you don't like PCM ;) Jokes aside, you could try other sample rates and try 2 channels. I think most devices are stereo, and mono would incurs additional processing. Some underlying API's may not support that. |
|
Nowadays both
webaudioandaudioworkletreport supported buffer size ranges that you can configure withBufferSize::Fixed.I don't see why you'd want raw
u8instead ofSamplebut nothing is stopping you from callingto_ne_bytes.