1. Jacob Sparre Andersen
  2. ALSA binding

Overview

HTTPS SSH
Ada sound recording API [1]
===========================

Implemented features:
 + 16-bit mono recording (Linux)
 + 16-bit mono playback (Linux)
 + 16-bit stereo recording (Linux)

The library is released under the Beer-Ware License (revision 42).


Build procedure:
----------------

% hg clone http://repositories.jacob-sparre.dk/alsa-binding
% cd alsa-binding
% ./configure
% make


Test procedure:
---------------

Sound as ASCII numbers for visual inspection:

% ./test_alsa_binding > sound.text

Recording a WAV file (hard-coded to fail on big-endian machines):

% ./microphone_to_wav > sound-mono.wav
% ./record_stereo_wav > sound-stereo.wav

Playing a 2 kHz saw-tooth note:

% ./playmono


Limitations:
------------

 - Currently only with implementations for Linux.
 - No installation procedure.


Links:
------

If you want to find other free Ada tools or libraries AdaIC [2] is an
excellent starting point.  You can also take a look at my other source text
repositories [3] or my web site [4].

[1] Source text repository:
    http://repositories.jacob-sparre.dk/alsa-binding
[2] Free Ada Tools and Libraries:
    http://www.adaic.org/ada-resources/tools-libraries/
[3] My repositories on Bitbucket:
    http://repositories.jacob-sparre.dk/
[4] My web site:
    http://www.jacob-sparre.dk/