pub fn open_audio(
frequency: i32,
format: AudioFormat,
channels: i32,
chunksize: i32,
) -> Result<(), String>Expand description
Opens the default audio device for playback. If you need to select a specific audio device
or require more fine-grained control over the device configuration, use open_audio_device.
chunksize: It is recommended to choose values between 256 and 1024, depending on whether you prefer latency or compatibility. Small values reduce latency but may not work very well on older systems. For instance, a chunk size of 256 will give you a latency of 6ms, while a chunk size of 1024 will give you a latency of 23ms for a frequency of 44100kHz.