Re: Is there a quick, not much processing time needed, way to makethe same volume on a 16 signed int stream in real time?
SA Dev wrote:
> Hi Jerry,
>
>
>>I don't know what you want. It's obvious that you can't control what you
>>aren't able to consider. You need to decide how good "good enough" is.
>
>
> I have a function that is getting 44.1khz samples (16bit) and I would like
> to make it output at a consistent volume between streams... It would be
> great to have the streams (different volumes) come out within a few decibels
> of each other...
>
> I realize that the volume may have to adjust since the stream is realtime
> and I don't know if any louder volumes are coming down the line, but that is
> ok.
>
> Thanks for the help,
>
> SA Dev
I still don't know what will make you happy and what will miss the mark;
what you would like at best and what you would be willing to settle for.
There are volume compressors used to maintain a constant output level
regardless of how the program material changes. The "ride gain" on the
signal, greatly diminishing the difference between crescendos and
diminuendos. They are good for speech (most tape recorders suitable for
meetings and dictation use them, but they make music sound rather
insipid. The best of them are quite good; it may do your job.
What hardware will you use to implement your device? How will the
software be written? There may be commercial units you can buy. If you
intend to look for those, look both for compressors and companders.
Jerry
--
Engineering is the art of making what you want from things you can get.
ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ
|