Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7913385
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T13:49:48+00:00 2026-06-03T13:49:48+00:00

I work for an audio recorder app and would like to add gain control

  • 0

I work for an audio recorder app and would like to add gain control but I don’t know how to do it. I have access to audio buffer but I don’t know how to make the sound louder or slower.
I see another apps that have a seekBar for selecting the decibels from a specific range.

aRecorder.read(buffer, 0, buffer.length);
fWriter.write(buffer); // Write buffer to file

Please tell me what should I do to implement gain control in my app.

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T13:49:49+00:00Added an answer on June 3, 2026 at 1:49 pm

    Changing the volume is simple, just multiply all the samples by some fraction. A change of +/- 3dB (decibels) corresponds to multiplication by 2 or 0.5 respectively (see http://en.wikipedia.org/wiki/Decibel). To prevent discontinuities in the output, make sure that you vary the multiplication factor smoothly from beginning to end.

    See AudioSampleBuffer::applyGainRamp() @ http://www.rawmaterialsoftware.com/api/classAudioSampleBuffer.html

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So it seems like setVolume() for html5 audio doesn't work at all on both
Work on asp.net vs05. I have three type of value Like:IsDesign,IsPrinting,IsInstall they are bit
I have an audio recorder class in my application. It worked fine previously and
I'm trying to create a file for my audio recorder, but this file keeps
How does one get the HTML5 Audio tag to work in a webworks app
Does ffmpeg audio effects like reverb? Can I work with the channels (to detain
Is there such a thing? The plugin would make an HTML5 audio tag work
I have recorded audio to a CaptureBuffer, but I can't figure out how to
I'm work on new iphone audio application. When i open the app, the Audio
i used this code to adjust volume but it didn't work int volume=23; audio.setStreamVolume(AudioManager.STREAM_RING,volume,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.