[alsa-devel] ALSA C++ API

Lasse Kärkkäinen tronic+rlk9 at trn.iki.fi
Sat Sep 8 22:16:51 CEST 2007


Hi,

I have written an experimental wrapper for a few parts of the PCM API,
using C++. I intend to keep it header-only, if possible. This minimizes
the binary compatibility issues and also improves performance slightly,
but unlikely noticeably (should be identical to using the C API directly).

Primary goals of this wrapper are safety (errors are handled by
exceptions and resource leaks should not be possible) and the simplicity
of use, while still keeping it very low-level, close to the C API.

Does anyone have interest to develop this further? It would also be nice
if it could eventually be included in the alsa-lib distribution.

The header and a sample program are attached below.

Comments are welcome.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: alsa.hpp
Url: http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20070908/a82adf30/attachment.bat 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: alsarate.cpp
Url: http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20070908/a82adf30/attachment-0001.bat 


More information about the Alsa-devel mailing list