see e.g. [this stackoverflow thread](https://stackoverflow.com/questions/3056113/recording-audio-with-openal) for some first inspiration.