OpenAL: How to create simple “Microphone Echo” programm?
An ancient question, but here’s an answer. It could definitely be trimmed if we were really going for conciseness, but this is a little bit less than 100 effective lines: #include <AL/al.h> // OpenAL header files #include <AL/alc.h> #include <list> using std::list; #define FREQ 22050 // Sample rate #define CAP_SIZE 2048 // How much to … Read more