mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-12-19 08:57:00 -05:00
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:
parent
f9e2058820
commit
daf3938a9e
7 changed files with 51 additions and 28 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue