I am looking for a cross-platform C++ library (if not, one for Windows and one for Macintosh) that records from a selected audio devices and write to disk in one of a common formats/containers.
Before I was doing recording with portaudio, but the library does not support it and that I have to manually format it myself. I have also looked at openal and libsndfile. And, ffmpeg looks complicated and does not offer me enough abstraction (in my opinion). Juce looks good, but there might a licensing issue if I decide to use it.