HTTPS SSH

Ada sound recording API

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 dependencies

  • Bash
  • GNU Make
  • GNU Parallel (or xargs)
  • GNAT
  • Mercurial (hg)
  • Perl
  • libasound2

Build procedure

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

Test procedure

Sound as ASCII numbers for visual inspection:

./bin/test_alsa_binding > sound.text

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

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

Playing a 2 kHz saw-tooth note:

./bin/playmono

Limitations

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

The copyright to the software belongs to JSA Research & Innovation. The software is distributed under the Beer Ware License (revision 42):

jacob@jacob-sparre.dk wrote this. As long as you retain this notice you can do whatever you want with this stuff. If we meet some day, and you think this stuff is worth it, you can buy me a beer in return.

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