mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-05 13:29:57 -05:00
make rtstutter use pa_ncpus()
This commit is contained in:
parent
4dc1916467
commit
cef5f48b50
1 changed files with 2 additions and 1 deletions
|
|
@ -36,6 +36,7 @@
|
|||
|
||||
#include <pulsecore/log.h>
|
||||
#include <pulsecore/macro.h>
|
||||
#include <pulsecore/core-util.h>
|
||||
|
||||
static int msec_lower, msec_upper;
|
||||
|
||||
|
|
@ -106,7 +107,7 @@ int main(int argc, char*argv[]) {
|
|||
|
||||
pa_log_notice("Creating random latencies in the range of %ims to %ims.", msec_lower, msec_upper);
|
||||
|
||||
for (n = 1; n < sysconf(_SC_NPROCESSORS_CONF); n++) {
|
||||
for (n = 1; n < pa_ncpus(); n++) {
|
||||
pthread_t t;
|
||||
pa_assert_se(pthread_create(&t, NULL, work, PA_INT_TO_PTR(n)) == 0);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue