Some questions about host implementations and API design #1296
|
Hello, I'm trying to implement a custom Host, to field-test my new library azo. there are a few things about cpal's API that confuse me:
I'm still somewhat new to the audio world, so idk how common (or even reasonable) any of these edge cases are, but I want to make sure that I do my custom host correctly |
Replies: 1 comment 5 replies
Cool, what are your project goals?
Yeah,
Samples are typed (
This is backend-dependent and cpal doesn't enforce anything either way. WASAPI and CoreAudio streams to one device get mixed by the OS. ALSA depends entirely on the PCM: raw hw:X,Y will throw a
I can imagine that manual channel mapping may be worthwhile on pro audio devices. JACK and PipeWire can help here. |
Cool, what are your project goals?
Yeah,
channels = Nmeans the firstNchannels in whatever order the driver reports. There's no channel-map field onStreamConfig(not yet, anyway).Samples ar…