pulseaudio/polyp/voltest.c
Lennart Poettering 1f0961368f * remove a lot of compiler warnings introduced by using some new GCC flags
* add typedefs for public structs and enums and drop the struct/enum prefixs from all uses where it makes sense


git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@447 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-01-11 01:17:39 +00:00

15 lines
420 B
C

/* $Id$ */
#include <stdio.h>
#include <polyp/sample.h>
#include "gccmacro.h"
int main(PA_GCC_UNUSED int argc, PA_GCC_UNUSED char *argv[]) {
int p;
for (p = 0; p <= 200; p++) {
pa_volume_t v = pa_volume_from_user((double) p/100);
double dB = pa_volume_to_dB(v);
printf("%3i%% = %u = %0.2f dB = %u = %3i%%\n", p, v, dB, pa_volume_from_dB(dB), (int) (pa_volume_to_user(v)*100));
}
}