mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
Make connect-stress test compile for win32
This commit is contained in:
parent
eea248e233
commit
6e319e5182
1 changed files with 3 additions and 3 deletions
|
|
@ -118,7 +118,7 @@ static void stream_write_callback(pa_stream *stream, size_t nbytes, void *userda
|
|||
memset(silence, 0, sizeof(silence));
|
||||
|
||||
while (nbytes) {
|
||||
int n = MIN(sizeof(silence), nbytes);
|
||||
int n = PA_MIN(sizeof(silence), nbytes);
|
||||
pa_stream_write(stream, silence, n, NULL, 0, 0);
|
||||
nbytes -= n;
|
||||
}
|
||||
|
|
@ -195,9 +195,9 @@ int main(int argc, char *argv[]) {
|
|||
|
||||
for (i = 0; i < NTESTS; i++) {
|
||||
connect(argv[0], &i);
|
||||
usleep(random() % 500000);
|
||||
usleep(rand() % 500000);
|
||||
disconnect();
|
||||
usleep(random() % 500000);
|
||||
usleep(rand() % 500000);
|
||||
}
|
||||
|
||||
fprintf(stderr, "Done.\n");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue