[Clam-devel] very basic processings examples / no time-domain audio gain in NE?

Hernán Ordiales h at ordia.com.ar
Tue Nov 20 11:16:32 PST 2007


On 11/19/07, David García Garzón <dgarcia at iua.upf.edu> wrote:
[snip]
> Maybe because this:
>                 BaseProcessing()
>                         :
>                         mInputAudio("Input Audio",this ),
>                         mOutputAudio("Audio Output",this),
>
>                         mInputControl("Control", this)
>                 {
>                         Configure( mConfig );
>                 }
>
> Should be:
>
>                 BaseProcessing(ProcessingConfig & config=Config())
>                         :
>                         mInputAudio("Input Audio",this ),
>                         mOutputAudio("Audio Output",this),
>                          mInputControl("Control", this)
>                 {
>                         Configure( config );
>                 }
> Try it out.

worked with:

		BaseProcessing(NullProcessingConfig config=Config())
			:
			mInputAudio("Input Audio",this ),
			mOutputAudio("Audio Output",this),

			mInputControl("Control", this)
		{
			Configure( config );
		}

> > > > As a next basic example i thought in an audio linear amplifier... was
> > > > weird to me but i could not find a basic time-domain audio gain in
> > > > networkeditor's processings (exists?), so i made one by my own...
> > > >
> > > > AudioGain.hxx: http://clam.pastebin.com/f78113b36
> > > > AudioGain.cxx: http://clam.pastebin.com/f1643ef69
> > > >
> > > > should i commit this one? or there is an special reason to not have a
> > > > time-domain amplifier?
> > >
> > > An AudioAmplifier It would be a nice addition. Some months ago I wondered
> > > the same question, until i realized you can use the AudioMixer with a
> > > single channel whenever we want to amplify something,
> >
> > btw, how this would work? i can only see one audio output in that
> > processing
>
> Yes, you should configure the number of channels which is default to 0. Maybe
> the default should be 2, feel free to change it. You get as many inports and
> gain controls as channels. If you configure it to 1 you have a nice
> amplifier.

now has sense  :-D

i'll do

> > > I definitely should take a look at the sample by sample way. We started,
> > > within the 3d acoustic part to do consider diferent processings for
> > > streaming audio and buffered audio so we could end up with 3 repeated
> > > processings. Ok, review them into my spare-time to-do's.
> >
> > ok, then just let me know if i have to commit something...
>
> Just commit the AudioAmplifier into er... src/Processing/AritOps?

done

cheers,
-- 
Hernán
http://h.ordia.com.ar
GnuPG: 0xEE8A3FE9




More information about the clam-devel mailing list