Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide



Rockbox mail archive

Subject: dsp.c help needed

dsp.c help needed

From: <lear_at_algonet.se>
Date: Thu, 7 Jul 2005 15:16:55 +0200 (MEST)

Hi,

I want to add a processing step in dsp.c, but I must say I find it difficult to
fully understand how it works. A few questions and things I've noticed:

* Which format are the samples in during processing? I want to multiply them
with a fixed-point number - before clipping - so I need to know the exact
format.

* Which input sample depths are supported? The code implies 16 and 32 only,
but it isn't clear from the API.

* Samples seem to be scaled differently, depending on the stereo format (if
scaling is needed).

* When "rendering" the final samples, the scaling and clipping seems to do
things that aren't needed (unless GCC is smart enough to optimize away that).

Perhaps a cleanup would be in order? :)

  Magnus

_______________________________________________
http://cool.haxx.se/mailman/listinfo/rockbox
Received on 2005-07-07

Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy