I am working for a recording device application and want to add gain control, but I do not know how to do this. I have access to the sound buffer, but I don’t know how to make the sound louder or slower. I see other applications that have seekBar to select decibels from a specific range.
aRecorder.read(buffer, 0, buffer.length);
fWriter.write(buffer);
Please tell me what to do to implement gain control in my application.
Thank.
source
share