diff options
author | Pierre Ossman <ossman@cendio.se> | 2006-02-16 19:19:58 +0000 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2006-02-16 19:19:58 +0000 |
commit | e205b25d65ccb380fa158711e24d55b6de5d9bc1 (patch) | |
tree | 470b4ced153c9ff18b8e35deb05c7a95efc838fc /polyp/voltest.c | |
parent | 5b881e62282f26b353635120935d114e0c7c3f3c (diff) |
Reorganised the source tree. We now have src/ with a couple of subdirs:
* daemon/ - Contains the files specific to the polypaudio daemon.
* modules/ - All loadable modules.
* polyp/ - Files that are part of the public, application interface or
are only used in libpolyp.
* polypcore/ - All other shared files.
* tests/ - Test programs.
* utils/ - Utility programs.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@487 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'polyp/voltest.c')
-rw-r--r-- | polyp/voltest.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/polyp/voltest.c b/polyp/voltest.c deleted file mode 100644 index 917e04d3..00000000 --- a/polyp/voltest.c +++ /dev/null @@ -1,20 +0,0 @@ -/* $Id$ */ - -#include <stdio.h> - -#include <polyp/volume.h> -#include "gccmacro.h" - -int main(PA_GCC_UNUSED int argc, PA_GCC_UNUSED char *argv[]) { - pa_volume_t v; - - for (v = PA_VOLUME_MUTED; v <= PA_VOLUME_NORM*2; v += 256) { - - double dB = pa_sw_volume_to_dB(v); - double f = pa_sw_volume_to_linear(v); - - printf("Volume: %3i; percent: %i%%; decibel %0.2f; linear = %0.2f; volume(decibel): %3i; volume(linear): %3i\n", - v, (v*100)/PA_VOLUME_NORM, dB, f, pa_sw_volume_from_dB(dB), pa_sw_volume_from_linear(f)); - - } -} |