mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-31 22:25:33 -04:00
print smallest attenuation/sample
This commit is contained in:
parent
aacb11bb40
commit
4ff41ecbb0
1 changed files with 3 additions and 0 deletions
|
|
@ -9,6 +9,9 @@ int main(int argc, char *argv[]) {
|
|||
float b;
|
||||
pa_channel_map map;
|
||||
|
||||
printf("Attenuation of sample 1 against 32767: %g dB\n", 20.0*log10(1.0/32767.0));
|
||||
printf("Smallest possible attenutation > 0 applied to 32767: %li\n", lrint(32767.0*pa_sw_volume_to_linear(1)));
|
||||
|
||||
for (v = PA_VOLUME_MUTED; v <= PA_VOLUME_NORM*2; v += 256) {
|
||||
|
||||
double dB = pa_sw_volume_to_dB(v);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue