mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-12-16 08:56:40 -05: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));
|
memset(silence, 0, sizeof(silence));
|
||||||
|
|
||||||
while (nbytes) {
|
while (nbytes) {
|
||||||
int n = MIN(sizeof(silence), nbytes);
|
int n = PA_MIN(sizeof(silence), nbytes);
|
||||||
pa_stream_write(stream, silence, n, NULL, 0, 0);
|
pa_stream_write(stream, silence, n, NULL, 0, 0);
|
||||||
nbytes -= n;
|
nbytes -= n;
|
||||||
}
|
}
|
||||||
|
|
@ -195,9 +195,9 @@ int main(int argc, char *argv[]) {
|
||||||
|
|
||||||
for (i = 0; i < NTESTS; i++) {
|
for (i = 0; i < NTESTS; i++) {
|
||||||
connect(argv[0], &i);
|
connect(argv[0], &i);
|
||||||
usleep(random() % 500000);
|
usleep(rand() % 500000);
|
||||||
disconnect();
|
disconnect();
|
||||||
usleep(random() % 500000);
|
usleep(rand() % 500000);
|
||||||
}
|
}
|
||||||
|
|
||||||
fprintf(stderr, "Done.\n");
|
fprintf(stderr, "Done.\n");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue