Forcing output to write frame size multiple

2009-02-19 Thread Frank Dischner
Hi all, I've been working on getting the output thread to always write a frame size multiple and I have a patch that works great. I'm not really sure whether it's a clean approach though so I'd like some feedback. It can be found on mantis #2148. Basically what it does is recalculate the number of

Re: Surround decoder plugin and questions about multichannel output

2009-02-15 Thread Frank Dischner
Hello all, I just uploaded a patch for my plugin to mantis, #2134. > Hmm, do you use some library for FFT or do you perform it yourself? Just > curious... I use fftw. > I think defining channel mapping would be a very important change that > needs to be done sooner or later. I don't know if you

Re: Surround decoder plugin and questions about multichannel output

2009-02-14 Thread Frank Dischner
> Can't both Alsa and PulseAudio do this for you without a line of code? Yes and no. As far as I can tell, they can only do passive upmixing. My plugin performs an fft and uses the phase and magnitude to steer the individual frequency bins. It can decode pro logic, pro logic 2, sq and qs encodings

Surround decoder plugin and questions about multichannel output

2009-02-11 Thread Frank Dischner
Hi, I am working on a plugin to upmix two channel stereo to 5.1. In order for it to be usable, I would like to add proper multichannel support to the core, but I have some questions about how it should be done. First, it seems that when effects are added to the chain they are not checked against t