add support for subscribing to autoload table changes

fix module-combine so that the sample rate of at least one streams is not changed from the original


git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@206 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
Lennart Poettering 2004-09-16 22:07:41 +00:00
parent f9e2058820
commit daf3938a9e
7 changed files with 51 additions and 28 deletions

View file

@ -121,11 +121,11 @@ double pa_volume_to_dB(pa_volume_t v) {
}
void pa_bytes_snprint(char *s, size_t l, off_t v) {
if (v >= 1024*1024*1024)
if (v >= (off_t) 1024*1024*1024)
snprintf(s, l, "%0.1f GB", (double) v/1024/1024/1024);
else if (v >= 1024*1024)
else if (v >= (off_t) 1024*1024)
snprintf(s, l, "%0.1f MB", (double) v/1024/1024);
else if (v >= 1024)
else if (v >= (off_t) 1024)
snprintf(s, l, "%0.1f KB", (double) v/1024);
else
snprintf(s, l, "%u B", (unsigned) v);