Function device_ nominal_ sample_ rate
pub fn device_nominal_sample_rate(device: &Device) -> Result<u32, Error>Expand description
Read this device’s current nominal sample rate on the control thread.
On macOS CoreAudio this reads kAudioDevicePropertyNominalSampleRate for
the exact CPAL device UID, independently of its input/output stream formats.
Other backends expose only CPAL’s current default configuration rate (output
when available, otherwise input); that is a backend proxy, not a measured
hardware clock. No device is opened or reconfigured. The snapshot can change
immediately; stream openers query again after building, before returning.