mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-03 09:01:50 -05:00
* new tool pacmd
* fix pacat/paplay/pactl for new API version * fix memory leak in pa_ioline git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@304 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
c90409e4b7
commit
28d97441e7
8 changed files with 218 additions and 4 deletions
|
|
@ -861,3 +861,12 @@ char *pa_runtime_path(const char *fn, char *s, size_t l) {
|
|||
snprintf(s, l, PA_RUNTIME_PATH_PREFIX"%s%s%s", pa_get_user_name(u, sizeof(u)), fn ? "/" : "", fn ? fn : "");
|
||||
return s;
|
||||
}
|
||||
|
||||
int pa_msleep(unsigned long t) {
|
||||
struct timespec ts;
|
||||
|
||||
ts.tv_sec = t/1000;
|
||||
ts.tv_nsec = (t % 1000) * 1000000;
|
||||
|
||||
return nanosleep(&ts, NULL);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue