blob: d8d5c5692d90d62d5e8a7e7a91f66e8a149953e2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
/* $Id$ */
#include <stdio.h>
#include <polyp/sample.h>
int main() {
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));
}
}
|