Hi folks, I've been working with pulseaudio for while and now we've implemented audio envelopes in PulseAdudio. The code is not upstream yet, but it can be found in this repository (http://git.profusion.mobi/cgit.cgi/ceolin/pulseaudio/) (branch ramp).
Using this code is pretty simple, for example, to apply an envelope on a sink pa_context_set_sink_volume_ramp_by_index, to apply on a sink-input (stream) pa_context_set_sink_input_volume_ramp. The audio envelope works in the follow way, the user states the final volume, how long this envelope should last and the interpolation type (which can be, cubic, logarithm or linear). In the internals PulseAudio figures out how many samples are in the estipulated interval and then using the interpolation type chosen it changes the samples volume until the volume desired. The difference between apply an envelope on a sink or sink-input is that when using over the sink the envelope is applied in all streams of that sink. Some feedback from people (Daniel :) ) working with ecore-audio would be great. Best Regards, Flavio Ceolin ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ enlightenment-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
