samedi 24 janvier 2015

The simplest way of recording an audio file using standard c++ libraries

I dont want to do any processing on the file but simply record an audio file in any format. My aim to convert that audio file into a binary text file since in the end all data is 1s and 0s. Let's leave that for another day, but for now all i want is to make a simple function "record()" that returns a tiny sound (say 1-2 seconds) via the computer's default mic and then store it in a suitable variable. it can have any default sampling rate bit rate etc parameters.


Aucun commentaire:

Enregistrer un commentaire