thestk / rtaudio

A set of C++ classes that provide a common API for realtime audio input/output across Linux (native ALSA, JACK, PulseAudio and OSS), Macintosh OS X (CoreAudio and JACK), and Windows (DirectSound, ASIO, and WASAPI) operating systems.
Other
1.49k stars 317 forks source link

use optimal types in c header #398

Closed BillyDM closed 1 year ago

BillyDM commented 1 year ago

Some of the types in the C header were either wrong or not not optimal.

Also, in my Rust bindings to RtAudio https://github.com/BillyDM/rtaudio-sys, I currently need to include an automatic bindings generator in the build system, which is inconvenient since it requires the user of the crate to have Clang installed on their system.

This auto bindings generator is needed because of the two enum types rtaudio_error_t and rtaudio_api_t. If those types were instead integers, then I could remove that binding generator step from my build system. So I went ahead and made that change too.