openal-soft icon indicating copy to clipboard operation
openal-soft copied to clipboard

Beginner's guide

Open HeYingnan opened this issue 4 years ago • 1 comments

I am a beginner, I can git clone the source code and I can build it , but I am not clear how to use the project. In fact, I find the dir examples. I want to use a file as input, a file as output, and add a fshiter effect. I do not know how can I do this? if I read sources code step by step, that's too slow. Can someone give me some suggestions?

HeYingnan avatar Jan 22 '21 04:01 HeYingnan

OpenAL is more designed for real-time playback of audio. While it can render the mix to a buffer for you to write out to a file, it first depends on knowing how to use OpenAL in general to mix the audio, then relies on using the ALC_SOFT_loopback extension to get the mix in a buffer instead of playing it, and requires you to use some methods for writing the buffer to an audio file (like libsndfile). I could probably make an example program that does this.

To start with, it would be helpful to learn the alreverb example, and try to change it to use the Frequency Shifter effect with your desired parameters. The LoadEffect function is what you're interested in modifying to change the effect that gets applied to the sound.

kcat avatar Jan 22 '21 05:01 kcat